@drttix/drt-sdk 0.8.5 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/cjs/src/functions/setBaseURL.js +6 -6
  2. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  3. package/dist/cjs/src/generated/portal/index.d.ts +0 -1
  4. package/dist/cjs/src/generated/portal/models/DiscountAccessRequestDto.d.ts +0 -1
  5. package/dist/cjs/src/generated/portal/models/OrderRecalculateRequestDto.d.ts +0 -3
  6. package/dist/cjs/src/generated/portal/models/PatronAccessRequestDto.d.ts +0 -1
  7. package/dist/cjs/src/generated/portal/types.d.ts +0 -1
  8. package/dist/cjs/src/staging/index.d.ts +77 -0
  9. package/dist/cjs/src/staging/index.js +40 -0
  10. package/dist/cjs/src/staging/portal.d.ts +63 -0
  11. package/dist/cjs/src/staging/portal.js +104 -0
  12. package/dist/cjs/src/staging/wrapService.d.ts +15 -0
  13. package/dist/cjs/src/staging/wrapService.js +44 -0
  14. package/dist/cjs/staging.d.ts +1 -0
  15. package/dist/cjs/staging.js +18 -0
  16. package/dist/esm/src/functions/setBaseURL.js +9 -9
  17. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  18. package/dist/esm/src/generated/portal/index.d.ts +0 -1
  19. package/dist/esm/src/generated/portal/models/DiscountAccessRequestDto.d.ts +0 -1
  20. package/dist/esm/src/generated/portal/models/OrderRecalculateRequestDto.d.ts +0 -3
  21. package/dist/esm/src/generated/portal/models/PatronAccessRequestDto.d.ts +0 -1
  22. package/dist/esm/src/generated/portal/types.d.ts +0 -1
  23. package/dist/esm/src/staging/index.d.ts +77 -0
  24. package/dist/esm/src/staging/index.js +34 -0
  25. package/dist/esm/src/staging/portal.d.ts +63 -0
  26. package/dist/esm/src/staging/portal.js +68 -0
  27. package/dist/esm/src/staging/wrapService.d.ts +15 -0
  28. package/dist/esm/src/staging/wrapService.js +40 -0
  29. package/dist/esm/staging.d.ts +1 -0
  30. package/dist/esm/staging.js +2 -0
  31. package/drt-api-specs.json +5 -5
  32. package/package.json +38 -30
  33. package/src/functions/setBaseURL.ts +21 -21
  34. package/src/generated/portal/core/OpenAPI.ts +31 -31
  35. package/src/generated/portal/index.ts +373 -374
  36. package/src/generated/portal/models/DiscountAccessRequestDto.ts +0 -1
  37. package/src/generated/portal/models/OrderRecalculateRequestDto.ts +0 -3
  38. package/src/generated/portal/models/PatronAccessRequestDto.ts +0 -1
  39. package/src/generated/portal/types.ts +336 -337
  40. package/src/staging/index.ts +39 -0
  41. package/src/staging/portal.ts +73 -0
  42. package/src/staging/wrapService.ts +51 -0
  43. package/staging.ts +2 -0
  44. package/tsconfig.cjs.json +1 -1
  45. package/tsconfig.esm.json +1 -1
  46. package/dist/cjs/src/generated/portal/models/ShowSeatTierPair.d.ts +0 -5
  47. package/dist/cjs/src/generated/portal/models/ShowSeatTierPair.js +0 -2
  48. package/dist/esm/src/generated/portal/models/ShowSeatTierPair.d.ts +0 -5
  49. package/dist/esm/src/generated/portal/models/ShowSeatTierPair.js +0 -1
  50. package/src/generated/portal/models/ShowSeatTierPair.ts +0 -10
@@ -0,0 +1,34 @@
1
+ // Staging entry point - exports DRT configured for staging APIs
2
+ // Usage: import { DRT } from '@drttix/drt-sdk/staging';
3
+ import { shopper } from "../definitions/shopper.js";
4
+ import { scanner } from "../definitions/scanner.js";
5
+ import { portalStaging } from "./portal.js";
6
+ import { init, isReady, getConfig, reset } from "../functions/sdkConfig.js";
7
+ // Re-export types
8
+ export { ShopperTypes } from "../definitions/shopper.js";
9
+ export { ScannerTypes } from "../definitions/scanner.js";
10
+ export { PortalTypes } from "./portal.js";
11
+ /**
12
+ * DRT SDK configured for staging environment.
13
+ *
14
+ * - portal: Uses staging API (https://api.staging.drttix.com/admin-portal)
15
+ * - shopper: Uses production API (unchanged)
16
+ * - scanner: Uses production API (unchanged)
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * import { DRT } from '@drttix/drt-sdk/staging';
21
+ *
22
+ * // Portal calls go to staging
23
+ * const data = await DRT.portal.auth.login({ ... });
24
+ * ```
25
+ */
26
+ export const DRT = {
27
+ shopper,
28
+ scanner,
29
+ portal: portalStaging,
30
+ init,
31
+ isReady,
32
+ getConfig,
33
+ reset,
34
+ };
@@ -0,0 +1,63 @@
1
+ import { AccountService } from "../generated/portal";
2
+ import { AccountingService } from "../generated/portal";
3
+ import { AppService } from "../generated/portal";
4
+ import { AuthService } from "../generated/portal";
5
+ import { BookmarkService } from "../generated/portal";
6
+ import { ClientToolsGeneratedEmailsService } from "../generated/portal";
7
+ import { ClientToolsParentLetterService } from "../generated/portal";
8
+ import { ClientToolsPatronDatabaseService } from "../generated/portal";
9
+ import { ClientToolsSeatAssignmentToolService } from "../generated/portal";
10
+ import { ClientToolsStripeOnboardingService } from "../generated/portal";
11
+ import { ClientToolsThemeBuilderService } from "../generated/portal";
12
+ import { ClientToolsThemesLibraryService } from "../generated/portal";
13
+ import { ClientToolsTicketingLinkService } from "../generated/portal";
14
+ import { ClientToolsTicketScanningService } from "../generated/portal";
15
+ import { ClientToolsUnapprovedOrdersService } from "../generated/portal";
16
+ import { ClientToolsWaitlistService } from "../generated/portal";
17
+ import { DashboardService } from "../generated/portal";
18
+ import { FeaturesBlockedSeatsService } from "../generated/portal";
19
+ import { FeaturesCheckoutQuestionsService } from "../generated/portal";
20
+ import { FeaturesDiscountsService } from "../generated/portal";
21
+ import { FeaturesDonationsService } from "../generated/portal";
22
+ import { FeaturesGiftCardsService } from "../generated/portal";
23
+ import { FeaturesGoldenTicketsService } from "../generated/portal";
24
+ import { FeaturesLandingPageService } from "../generated/portal";
25
+ import { FeaturesPriorityService } from "../generated/portal";
26
+ import { FeaturesProductsService } from "../generated/portal";
27
+ import { OrderLookupService } from "../generated/portal";
28
+ import { ReportsService } from "../generated/portal";
29
+ import { SettingsService } from "../generated/portal";
30
+ import { ShowsService } from "../generated/portal";
31
+ export declare const portalStaging: {
32
+ account: typeof AccountService;
33
+ accounting: typeof AccountingService;
34
+ app: typeof AppService;
35
+ auth: typeof AuthService;
36
+ bookmark: typeof BookmarkService;
37
+ clienttoolsgeneratedemails: typeof ClientToolsGeneratedEmailsService;
38
+ clienttoolsparentletter: typeof ClientToolsParentLetterService;
39
+ clienttoolspatrondatabase: typeof ClientToolsPatronDatabaseService;
40
+ clienttoolsseatassignmenttool: typeof ClientToolsSeatAssignmentToolService;
41
+ clienttoolsstripeonboarding: typeof ClientToolsStripeOnboardingService;
42
+ clienttoolsthemebuilder: typeof ClientToolsThemeBuilderService;
43
+ clienttoolsthemeslibrary: typeof ClientToolsThemesLibraryService;
44
+ clienttoolsticketinglink: typeof ClientToolsTicketingLinkService;
45
+ clienttoolsticketscanning: typeof ClientToolsTicketScanningService;
46
+ clienttoolsunapprovedorders: typeof ClientToolsUnapprovedOrdersService;
47
+ clienttoolswaitlist: typeof ClientToolsWaitlistService;
48
+ dashboard: typeof DashboardService;
49
+ featuresblockedseats: typeof FeaturesBlockedSeatsService;
50
+ featurescheckoutquestions: typeof FeaturesCheckoutQuestionsService;
51
+ featuresdiscounts: typeof FeaturesDiscountsService;
52
+ featuresdonations: typeof FeaturesDonationsService;
53
+ featuresgiftcards: typeof FeaturesGiftCardsService;
54
+ featuresgoldentickets: typeof FeaturesGoldenTicketsService;
55
+ featureslandingpage: typeof FeaturesLandingPageService;
56
+ featurespriority: typeof FeaturesPriorityService;
57
+ featuresproducts: typeof FeaturesProductsService;
58
+ orderlookup: typeof OrderLookupService;
59
+ reports: typeof ReportsService;
60
+ settings: typeof SettingsService;
61
+ shows: typeof ShowsService;
62
+ };
63
+ export * as PortalTypes from "../generated/portal/types";
@@ -0,0 +1,68 @@
1
+ // Staging portal services - wraps all portal services to use staging API
2
+ import { OpenAPI as PortalOpenAPI } from "../generated/portal/core/OpenAPI.js";
3
+ import { wrapServiceForStaging, STAGING_URLS } from "./wrapService.js";
4
+ import { AccountService } from "../generated/portal/index.js";
5
+ import { AccountingService } from "../generated/portal/index.js";
6
+ import { AppService } from "../generated/portal/index.js";
7
+ import { AuthService } from "../generated/portal/index.js";
8
+ import { BookmarkService } from "../generated/portal/index.js";
9
+ import { ClientToolsGeneratedEmailsService } from "../generated/portal/index.js";
10
+ import { ClientToolsParentLetterService } from "../generated/portal/index.js";
11
+ import { ClientToolsPatronDatabaseService } from "../generated/portal/index.js";
12
+ import { ClientToolsSeatAssignmentToolService } from "../generated/portal/index.js";
13
+ import { ClientToolsStripeOnboardingService } from "../generated/portal/index.js";
14
+ import { ClientToolsThemeBuilderService } from "../generated/portal/index.js";
15
+ import { ClientToolsThemesLibraryService } from "../generated/portal/index.js";
16
+ import { ClientToolsTicketingLinkService } from "../generated/portal/index.js";
17
+ import { ClientToolsTicketScanningService } from "../generated/portal/index.js";
18
+ import { ClientToolsUnapprovedOrdersService } from "../generated/portal/index.js";
19
+ import { ClientToolsWaitlistService } from "../generated/portal/index.js";
20
+ import { DashboardService } from "../generated/portal/index.js";
21
+ import { FeaturesBlockedSeatsService } from "../generated/portal/index.js";
22
+ import { FeaturesCheckoutQuestionsService } from "../generated/portal/index.js";
23
+ import { FeaturesDiscountsService } from "../generated/portal/index.js";
24
+ import { FeaturesDonationsService } from "../generated/portal/index.js";
25
+ import { FeaturesGiftCardsService } from "../generated/portal/index.js";
26
+ import { FeaturesGoldenTicketsService } from "../generated/portal/index.js";
27
+ import { FeaturesLandingPageService } from "../generated/portal/index.js";
28
+ import { FeaturesPriorityService } from "../generated/portal/index.js";
29
+ import { FeaturesProductsService } from "../generated/portal/index.js";
30
+ import { OrderLookupService } from "../generated/portal/index.js";
31
+ import { ReportsService } from "../generated/portal/index.js";
32
+ import { SettingsService } from "../generated/portal/index.js";
33
+ import { ShowsService } from "../generated/portal/index.js";
34
+ const wrap = (service) => wrapServiceForStaging(service, PortalOpenAPI, STAGING_URLS.portal);
35
+ export const portalStaging = {
36
+ account: wrap(AccountService),
37
+ accounting: wrap(AccountingService),
38
+ app: wrap(AppService),
39
+ auth: wrap(AuthService),
40
+ bookmark: wrap(BookmarkService),
41
+ clienttoolsgeneratedemails: wrap(ClientToolsGeneratedEmailsService),
42
+ clienttoolsparentletter: wrap(ClientToolsParentLetterService),
43
+ clienttoolspatrondatabase: wrap(ClientToolsPatronDatabaseService),
44
+ clienttoolsseatassignmenttool: wrap(ClientToolsSeatAssignmentToolService),
45
+ clienttoolsstripeonboarding: wrap(ClientToolsStripeOnboardingService),
46
+ clienttoolsthemebuilder: wrap(ClientToolsThemeBuilderService),
47
+ clienttoolsthemeslibrary: wrap(ClientToolsThemesLibraryService),
48
+ clienttoolsticketinglink: wrap(ClientToolsTicketingLinkService),
49
+ clienttoolsticketscanning: wrap(ClientToolsTicketScanningService),
50
+ clienttoolsunapprovedorders: wrap(ClientToolsUnapprovedOrdersService),
51
+ clienttoolswaitlist: wrap(ClientToolsWaitlistService),
52
+ dashboard: wrap(DashboardService),
53
+ featuresblockedseats: wrap(FeaturesBlockedSeatsService),
54
+ featurescheckoutquestions: wrap(FeaturesCheckoutQuestionsService),
55
+ featuresdiscounts: wrap(FeaturesDiscountsService),
56
+ featuresdonations: wrap(FeaturesDonationsService),
57
+ featuresgiftcards: wrap(FeaturesGiftCardsService),
58
+ featuresgoldentickets: wrap(FeaturesGoldenTicketsService),
59
+ featureslandingpage: wrap(FeaturesLandingPageService),
60
+ featurespriority: wrap(FeaturesPriorityService),
61
+ featuresproducts: wrap(FeaturesProductsService),
62
+ orderlookup: wrap(OrderLookupService),
63
+ reports: wrap(ReportsService),
64
+ settings: wrap(SettingsService),
65
+ shows: wrap(ShowsService),
66
+ };
67
+ // Re-export types
68
+ export * as PortalTypes from "../generated/portal/types.js";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Creates a proxy wrapper around a service class that temporarily
3
+ * swaps the OpenAPI.BASE to a staging URL for each method call.
4
+ *
5
+ * This works because the URL is built synchronously in the request function
6
+ * before any async operations begin.
7
+ */
8
+ export declare function wrapServiceForStaging<T extends object>(ServiceClass: T, openAPIConfig: {
9
+ BASE: string;
10
+ }, stagingBase: string): T;
11
+ export declare const STAGING_URLS: {
12
+ portal: string;
13
+ shopper: string;
14
+ scanner: string;
15
+ };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Creates a proxy wrapper around a service class that temporarily
3
+ * swaps the OpenAPI.BASE to a staging URL for each method call.
4
+ *
5
+ * This works because the URL is built synchronously in the request function
6
+ * before any async operations begin.
7
+ */
8
+ export function wrapServiceForStaging(ServiceClass, openAPIConfig, stagingBase) {
9
+ return new Proxy(ServiceClass, {
10
+ get(target, prop, receiver) {
11
+ const original = Reflect.get(target, prop, receiver);
12
+ if (typeof original === "function") {
13
+ return function (...args) {
14
+ // Save the original BASE
15
+ const originalBase = openAPIConfig.BASE;
16
+ // Temporarily set to staging
17
+ openAPIConfig.BASE = stagingBase;
18
+ try {
19
+ // Call the original method - URL is built synchronously here
20
+ const result = original.apply(target, args);
21
+ return result;
22
+ }
23
+ finally {
24
+ // Restore original BASE immediately after the sync call
25
+ openAPIConfig.BASE = originalBase;
26
+ }
27
+ };
28
+ }
29
+ return original;
30
+ },
31
+ });
32
+ }
33
+ // Staging base URLs
34
+ // Scanner doesn't have a staging
35
+ // TODO: Update shopper to use production URL
36
+ export const STAGING_URLS = {
37
+ portal: "https://api.staging.drttix.com/admin-portal",
38
+ shopper: "https://api.staging.drttix.com/shopper",
39
+ scanner: "https://api.drttix.com/scanner-v3",
40
+ };
@@ -0,0 +1 @@
1
+ export * from "./src/staging/index";
@@ -0,0 +1,2 @@
1
+ // Staging entry point re-export
2
+ export * from "./src/staging/index";
@@ -1,14 +1,14 @@
1
1
  [
2
2
  {
3
3
  "name": "shopper",
4
- "url": "https://api.drttix.com/shopper/docs-json"
4
+ "url": "https://api.staging.drttix.com/shopper/docs-json"
5
5
  },
6
6
  {
7
7
  "name": "scanner",
8
8
  "url": "https://api.drttix.com/scanner-v3/docs-json"
9
9
  },
10
- {
11
- "name": "portal",
12
- "url": "https://api.staging.drttix.com/admin-portal/docs-json"
13
- }
10
+ {
11
+ "name": "portal",
12
+ "url": "https://api.drttix.com/admin-portal/docs-json"
13
+ }
14
14
  ]
package/package.json CHANGED
@@ -1,32 +1,40 @@
1
1
  {
2
- "name": "@drttix/drt-sdk",
3
- "description": "DRT SDK",
4
- "version": "0.8.5",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/esm/index.d.ts",
8
- "exports": {
9
- "import": "./dist/esm/index.js",
10
- "require": "./dist/cjs/index.js"
11
- },
12
- "type": "commonjs",
13
- "private": false,
14
- "publishConfig": {
15
- "access": "public",
16
- "registry": "https://registry.npmjs.org/"
17
- },
18
- "scripts": {
19
- "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
20
- "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
21
- "generate": "npx tsx src/scripts/build-all.ts",
22
- "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
23
- },
24
- "devDependencies": {
25
- "@types/node": "^24.0.4",
26
- "esbuild": "^0.20.0",
27
- "typescript": "^5.8.3"
28
- },
29
- "dependencies": {
30
- "@drttix/drt-sdk": "^0.2.9"
31
- }
2
+ "name": "@drttix/drt-sdk",
3
+ "description": "DRT SDK",
4
+ "version": "0.9.0",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js",
12
+ "types": "./dist/esm/index.d.ts"
13
+ },
14
+ "./staging": {
15
+ "import": "./dist/esm/staging.js",
16
+ "require": "./dist/cjs/staging.js",
17
+ "types": "./dist/esm/staging.d.ts"
18
+ }
19
+ },
20
+ "type": "commonjs",
21
+ "private": false,
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "scripts": {
27
+ "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
28
+ "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
29
+ "generate": "npx tsx src/scripts/build-all.ts",
30
+ "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^24.0.4",
34
+ "esbuild": "^0.20.0",
35
+ "typescript": "^5.8.3"
36
+ },
37
+ "dependencies": {
38
+ "@drttix/drt-sdk": "^0.2.9"
39
+ }
32
40
  }
@@ -1,16 +1,16 @@
1
1
  // Centralized base URL initialization for all services
2
- import { OpenAPI as ShopperAPI } from '../generated/shopper/core/OpenAPI';
3
- import { OpenAPI as ScannerAPI } from '../generated/scanner/core/OpenAPI';
4
- import { OpenAPI as PortalAPI } from '../generated/portal/core/OpenAPI';
2
+ import { OpenAPI as ShopperAPI } from "../generated/shopper/core/OpenAPI";
3
+ import { OpenAPI as ScannerAPI } from "../generated/scanner/core/OpenAPI";
4
+ import { OpenAPI as PortalAPI } from "../generated/portal/core/OpenAPI";
5
5
 
6
6
  // Override fetch for the portal API client
7
7
  PortalAPI.WITH_CREDENTIALS = true;
8
8
 
9
9
  // Public API endpoints (default)
10
10
  const PUBLIC_API = {
11
- shopper: 'https://api.drttix.com/shopper',
12
- scanner: 'https://api.drttix.com/scanner-v3',
13
- portal: 'https://api.staging.drttix.com/admin-portal',
11
+ shopper: "https://api.drttix.com/shopper",
12
+ scanner: "https://api.drttix.com/scanner-v3",
13
+ portal: "https://api.drttix.com/admin-portal",
14
14
  };
15
15
 
16
16
  // One-time base URL initialization guard
@@ -26,22 +26,22 @@ let didSetBaseUrls = false;
26
26
  * DRT_API_BASE_URL=<url> (uses custom base URL for both services)
27
27
  */
28
28
  export function setBaseUrlsOnce() {
29
- if (didSetBaseUrls) return;
30
- didSetBaseUrls = true;
29
+ if (didSetBaseUrls) return;
30
+ didSetBaseUrls = true;
31
31
 
32
- // Browser-friendly environment detection:
33
- // - If `globalThis.DRT_API_BASE_URL` is provided (e.g. window.DRT_API_BASE_URL), use it.
34
- // - If `globalThis.DRT_API_LOCAL` is set to true (boolean) or "true" (string), use localhost.
35
- // - Otherwise, fall back to PUBLIC_API defaults.
36
- const globalEnv: any =
37
- typeof globalThis !== 'undefined' ? (globalThis as any) : {};
38
- const customBase = globalEnv.DRT_API_BASE_URL ?? null;
39
- const useLocal =
40
- globalEnv.DRT_API_LOCAL === true || globalEnv.DRT_API_LOCAL === 'true';
32
+ // Browser-friendly environment detection:
33
+ // - If `globalThis.DRT_API_BASE_URL` is provided (e.g. window.DRT_API_BASE_URL), use it.
34
+ // - If `globalThis.DRT_API_LOCAL` is set to true (boolean) or "true" (string), use localhost.
35
+ // - Otherwise, fall back to PUBLIC_API defaults.
36
+ const globalEnv: any =
37
+ typeof globalThis !== "undefined" ? (globalThis as any) : {};
38
+ const customBase = globalEnv.DRT_API_BASE_URL ?? null;
39
+ const useLocal =
40
+ globalEnv.DRT_API_LOCAL === true || globalEnv.DRT_API_LOCAL === "true";
41
41
 
42
- const base = customBase || (useLocal ? 'http://localhost:3000' : null);
42
+ const base = customBase || (useLocal ? "http://localhost:3000" : null);
43
43
 
44
- ShopperAPI.BASE = base ? `${base}/shopper` : PUBLIC_API.shopper;
45
- ScannerAPI.BASE = base ? `${base}/scanner-v3` : PUBLIC_API.scanner;
46
- PortalAPI.BASE = base ? `${base}/portal` : PUBLIC_API.portal;
44
+ ShopperAPI.BASE = base ? `${base}/shopper` : PUBLIC_API.shopper;
45
+ ScannerAPI.BASE = base ? `${base}/scanner-v3` : PUBLIC_API.scanner;
46
+ PortalAPI.BASE = base ? `${base}/portal` : PUBLIC_API.portal;
47
47
  }
@@ -1,32 +1,32 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ApiRequestOptions } from './ApiRequestOptions';
6
-
7
- type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
8
- type Headers = Record<string, string>;
9
-
10
- export type OpenAPIConfig = {
11
- BASE: string;
12
- VERSION: string;
13
- WITH_CREDENTIALS: boolean;
14
- CREDENTIALS: 'include' | 'omit' | 'same-origin';
15
- TOKEN?: string | Resolver<string> | undefined;
16
- USERNAME?: string | Resolver<string> | undefined;
17
- PASSWORD?: string | Resolver<string> | undefined;
18
- HEADERS?: Headers | Resolver<Headers> | undefined;
19
- ENCODE_PATH?: ((path: string) => string) | undefined;
20
- };
21
-
22
- export const OpenAPI: OpenAPIConfig = {
23
- BASE: '',
24
- VERSION: '20260410.1',
25
- WITH_CREDENTIALS: false,
26
- CREDENTIALS: 'include',
27
- TOKEN: undefined,
28
- USERNAME: undefined,
29
- PASSWORD: undefined,
30
- HEADERS: undefined,
31
- ENCODE_PATH: undefined,
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { ApiRequestOptions } from './ApiRequestOptions';
6
+
7
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
8
+ type Headers = Record<string, string>;
9
+
10
+ export type OpenAPIConfig = {
11
+ BASE: string;
12
+ VERSION: string;
13
+ WITH_CREDENTIALS: boolean;
14
+ CREDENTIALS: 'include' | 'omit' | 'same-origin';
15
+ TOKEN?: string | Resolver<string> | undefined;
16
+ USERNAME?: string | Resolver<string> | undefined;
17
+ PASSWORD?: string | Resolver<string> | undefined;
18
+ HEADERS?: Headers | Resolver<Headers> | undefined;
19
+ ENCODE_PATH?: ((path: string) => string) | undefined;
20
+ };
21
+
22
+ export const OpenAPI: OpenAPIConfig = {
23
+ BASE: '',
24
+ VERSION: '20260409.1',
25
+ WITH_CREDENTIALS: false,
26
+ CREDENTIALS: 'include',
27
+ TOKEN: undefined,
28
+ USERNAME: undefined,
29
+ PASSWORD: undefined,
30
+ HEADERS: undefined,
31
+ ENCODE_PATH: undefined,
32
32
  };