Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../StripeResource.js';
export class ReportRunResource extends StripeResource {
/**
* Returns a list of Report Runs, with the most recent appearing first.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/reporting/report_runs', params, options, {
methodType: 'list',
});
}
/**
* Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
*/
create(params, options) {
return this._makeRequest('POST', '/v1/reporting/report_runs', params, options);
}
/**
* Retrieves the details of an existing Report Run.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/reporting/report_runs/${encodeURIComponent(id)}`, params, options);
}
}
//# sourceMappingURL=ReportRuns.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ReportRuns.js","sourceRoot":"","sources":["../../../src/resources/Reporting/ReportRuns.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,iBAAkB,SAAQ,cAAc;IACnD;;OAEG;IACH,IAAI,CACF,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,2BAA2B,EAC3B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,2BAA2B,EAC3B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

View File

@@ -0,0 +1,66 @@
import { StripeResource } from '../../StripeResource.js';
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
export declare class ReportTypeResource extends StripeResource {
/**
* Returns a full list of Report Types.
*/
list(params?: Reporting.ReportTypeListParams, options?: RequestOptions): ApiListPromise<ReportType>;
/**
* Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
*/
retrieve(id: string, params?: Reporting.ReportTypeRetrieveParams, options?: RequestOptions): Promise<Response<ReportType>>;
}
export interface ReportType {
/**
* The [ID of the Report Type](https://docs.stripe.com/reporting/statements/api#available-report-types), such as `balance.summary.1`.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'reporting.report_type';
/**
* Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
*/
data_available_end: number;
/**
* Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
*/
data_available_start: number;
/**
* List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the `columns` parameter, this will be null.)
*/
default_columns: Array<string> | null;
/**
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
*/
livemode: boolean;
/**
* Human-readable name of the Report Type
*/
name: string;
/**
* When this Report Type was latest updated. Measured in seconds since the Unix epoch.
*/
updated: number;
/**
* Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
*/
version: number;
}
export declare namespace Reporting {
interface ReportTypeRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
export declare namespace Reporting {
interface ReportTypeListParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}

View File

@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../StripeResource.js';
export class ReportTypeResource extends StripeResource {
/**
* Returns a full list of Report Types.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/reporting/report_types', params, options, {
methodType: 'list',
});
}
/**
* Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/reporting/report_types/${encodeURIComponent(id)}`, params, options);
}
}
//# sourceMappingURL=ReportTypes.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ReportTypes.js","sourceRoot":"","sources":["../../../src/resources/Reporting/ReportTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAGvD,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD;;OAEG;IACH,IAAI,CACF,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,4BAA4B,EAC5B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

20
node_modules/stripe/esm/resources/Reporting/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import { Stripe } from '../../stripe.core.js';
import { Reporting as ReportingNamespace0, ReportRun, ReportRunResource } from './ReportRuns.js';
import { Reporting as ReportingNamespace1, ReportType, ReportTypeResource } from './ReportTypes.js';
export { ReportRun } from './ReportRuns.js';
export { ReportType } from './ReportTypes.js';
export declare class Reporting {
private readonly stripe;
reportRuns: ReportRunResource;
reportTypes: ReportTypeResource;
constructor(stripe: Stripe);
}
export declare namespace Reporting {
export import ReportRunListParams = ReportingNamespace0.ReportRunListParams;
export import ReportRunCreateParams = ReportingNamespace0.ReportRunCreateParams;
export import ReportRunRetrieveParams = ReportingNamespace0.ReportRunRetrieveParams;
export { ReportRun };
export import ReportTypeListParams = ReportingNamespace1.ReportTypeListParams;
export import ReportTypeRetrieveParams = ReportingNamespace1.ReportTypeRetrieveParams;
export { ReportType };
}

11
node_modules/stripe/esm/resources/Reporting/index.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
// File generated from our OpenAPI spec
import { ReportRunResource, } from './ReportRuns.js';
import { ReportTypeResource, } from './ReportTypes.js';
export class Reporting {
constructor(stripe) {
this.stripe = stripe;
this.reportRuns = new ReportRunResource(stripe);
this.reportTypes = new ReportTypeResource(stripe);
}
}
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Reporting/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,OAAO,SAAS;IAIpB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;CACF"}