@fusebase/fusebase-gate-sdk 2.2.2-sdk.9 → 2.2.3
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.
- package/dist/apis/BillingApi.d.ts +111 -0
- package/dist/apis/BillingApi.js +150 -0
- package/dist/apis/IsolatedStoresApi.d.ts +449 -0
- package/dist/apis/IsolatedStoresApi.js +514 -0
- package/dist/apis/OrgGroupsApi.d.ts +199 -0
- package/dist/apis/OrgGroupsApi.js +246 -0
- package/dist/extras/fetchWithRetry.js +6 -1
- package/dist/extras/sqlMigrationBundle.d.ts +13 -0
- package/dist/extras/sqlMigrationBundle.js +69 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -1
- package/dist/types/billing/billing.d.ts +129 -0
- package/dist/types/billing/billing.js +13 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.js +3 -0
- package/dist/types/isolated-store/isolated-store.d.ts +591 -0
- package/dist/types/isolated-store/isolated-store.js +91 -0
- package/dist/types/org-group/org-group.d.ts +128 -0
- package/dist/types/org-group/org-group.js +7 -0
- package/dist/types/shared/enums.d.ts +1 -1
- package/dist/types/shared/enums.js +1 -1
- package/dist/types/token/token.d.ts +11 -0
- package/package.json +1 -1
- package/release-notes/2.2.2-sdk.41.md +44 -0
- package/release-notes/2.2.3.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.2-sdk.9.md +0 -9
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export type StripeModeContract = "payment" | "subscription";
|
|
2
|
+
export type StripeIntervalContract = "day" | "week" | "month" | "year";
|
|
3
|
+
export interface StripeOauthLookupRequestContract {
|
|
4
|
+
stripeAccountId?: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface StripeOauthContract {
|
|
7
|
+
orgId?: string;
|
|
8
|
+
userId?: number;
|
|
9
|
+
stripeAccountId?: string;
|
|
10
|
+
liveMode?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface StripeOauthLookupResponseContract {
|
|
13
|
+
oauth: StripeOauthContract | null;
|
|
14
|
+
}
|
|
15
|
+
export interface StripeModeUpdateRequestContract {
|
|
16
|
+
stripeAccountId: string;
|
|
17
|
+
liveMode: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface StripeModeMutationResponseContract {
|
|
20
|
+
oauth: StripeOauthContract;
|
|
21
|
+
}
|
|
22
|
+
export interface StripeProductContract {
|
|
23
|
+
id?: number;
|
|
24
|
+
orgId?: string;
|
|
25
|
+
userId?: number;
|
|
26
|
+
stripeAccountId?: string;
|
|
27
|
+
mode?: StripeModeContract;
|
|
28
|
+
amountCents?: number;
|
|
29
|
+
currency?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
productId?: string | null;
|
|
32
|
+
priceId?: string | null;
|
|
33
|
+
interval?: StripeIntervalContract;
|
|
34
|
+
intervalCount?: number | null;
|
|
35
|
+
kind?: string;
|
|
36
|
+
kindId?: string;
|
|
37
|
+
deleted?: boolean;
|
|
38
|
+
createdAt?: number;
|
|
39
|
+
updatedAt?: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* For mode=subscription, interval and intervalCount are required.
|
|
43
|
+
* For mode=payment, interval and intervalCount must be omitted.
|
|
44
|
+
*/
|
|
45
|
+
export interface StripeProductCreateRequestContract {
|
|
46
|
+
stripeAccountId: string;
|
|
47
|
+
mode: StripeModeContract;
|
|
48
|
+
amountCents: number;
|
|
49
|
+
currency: string;
|
|
50
|
+
title: string;
|
|
51
|
+
kind: string;
|
|
52
|
+
kindId: string;
|
|
53
|
+
interval?: StripeIntervalContract;
|
|
54
|
+
intervalCount?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface StripeProductFindRequestContract {
|
|
57
|
+
stripeAccountId?: string | null;
|
|
58
|
+
kind?: string | null;
|
|
59
|
+
kindId?: string | null;
|
|
60
|
+
mode?: StripeModeContract | null;
|
|
61
|
+
}
|
|
62
|
+
export interface StripeProductLookupResponseContract {
|
|
63
|
+
product: StripeProductContract | null;
|
|
64
|
+
}
|
|
65
|
+
export interface StripeProductMutationResponseContract {
|
|
66
|
+
product: StripeProductContract;
|
|
67
|
+
}
|
|
68
|
+
export interface StripeProductDeleteRequestContract {
|
|
69
|
+
kind: string;
|
|
70
|
+
kindId: string;
|
|
71
|
+
stripeAccountId?: string | null;
|
|
72
|
+
}
|
|
73
|
+
export interface StripeProductDeleteResponseContract {
|
|
74
|
+
deleted: boolean;
|
|
75
|
+
kind: string;
|
|
76
|
+
kindId: string;
|
|
77
|
+
stripeAccountId?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export interface StripeCheckoutLinkRequestContract {
|
|
80
|
+
stripeAccountId: string;
|
|
81
|
+
kind: string;
|
|
82
|
+
kindId: string;
|
|
83
|
+
buyerId: number;
|
|
84
|
+
successUrl: string;
|
|
85
|
+
cancelUrl: string;
|
|
86
|
+
customerEmail?: string | null;
|
|
87
|
+
}
|
|
88
|
+
export interface StripeCheckoutLinkResponseContract {
|
|
89
|
+
url?: string | null;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Cancels a Stripe subscription for a buyer and product identity.
|
|
93
|
+
* When cancelAtPeriodEnd is omitted or true, cancellation is scheduled for the end
|
|
94
|
+
* of the current billing period. Set false for immediate cancellation.
|
|
95
|
+
*/
|
|
96
|
+
export interface StripeSubscriptionCancelRequestContract {
|
|
97
|
+
stripeAccountId: string;
|
|
98
|
+
kind: string;
|
|
99
|
+
kindId: string;
|
|
100
|
+
buyerId: number;
|
|
101
|
+
cancelAtPeriodEnd?: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface StripeSubscriptionCancelResponseContract {
|
|
104
|
+
ok: boolean;
|
|
105
|
+
subscriptionId: string | null;
|
|
106
|
+
stripeStatus: string | null;
|
|
107
|
+
cancelAtPeriodEnd: boolean;
|
|
108
|
+
currentPeriodEnd: number | null;
|
|
109
|
+
}
|
|
110
|
+
export interface StripePaymentStateRequestContract {
|
|
111
|
+
stripeAccountId: string;
|
|
112
|
+
mode: StripeModeContract;
|
|
113
|
+
kind: string;
|
|
114
|
+
kindId: string;
|
|
115
|
+
buyerId: number;
|
|
116
|
+
}
|
|
117
|
+
export interface StripePaymentStateResponseContract {
|
|
118
|
+
active?: boolean | null;
|
|
119
|
+
}
|
|
120
|
+
export declare const StripeModeContract: {
|
|
121
|
+
readonly Payment: "payment";
|
|
122
|
+
readonly Subscription: "subscription";
|
|
123
|
+
};
|
|
124
|
+
export declare const StripeIntervalContract: {
|
|
125
|
+
readonly Day: "day";
|
|
126
|
+
readonly Week: "week";
|
|
127
|
+
readonly Month: "month";
|
|
128
|
+
readonly Year: "year";
|
|
129
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StripeIntervalContract = exports.StripeModeContract = void 0;
|
|
4
|
+
exports.StripeModeContract = {
|
|
5
|
+
Payment: "payment",
|
|
6
|
+
Subscription: "subscription"
|
|
7
|
+
};
|
|
8
|
+
exports.StripeIntervalContract = {
|
|
9
|
+
Day: "day",
|
|
10
|
+
Week: "week",
|
|
11
|
+
Month: "month",
|
|
12
|
+
Year: "year"
|
|
13
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
* Generated by SDK codegen
|
|
6
6
|
*/
|
|
7
7
|
export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } from "./access/access";
|
|
8
|
+
export * from "./billing/billing";
|
|
8
9
|
export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
|
|
10
|
+
export * from "./isolated-store/isolated-store";
|
|
9
11
|
export * from "./note/note";
|
|
12
|
+
export * from "./org-group/org-group";
|
|
10
13
|
export type { OrgInviteContract, OrgMagicLinkContract, OrgPortalContract, OrgPortalListResponseContract, OrgUserAddRequestContract, OrgUserAddResponseContract, OrgUserContract, OrgUserListResponseContract, OrgWorkspaceContract, OrgWorkspaceInviteContract, OrgWorkspaceListResponseContract, OrgWorkspaceMemberContract } from "./org-user/org-user";
|
|
11
14
|
export * from "./shared/common";
|
|
12
15
|
export * from "./shared/enums";
|
|
13
16
|
export type { GetHealth200ResponseContract } from "./shared/health";
|
|
14
17
|
export type { aliasInQueryOptional, aliasInQueryRequired, cacheStrategyInQueryOptional, copyDataInQueryRequired, copyRelationsInQueryRequired, copyTablesInQueryRequired, copyViewsInQueryRequired, createDefaultRowsInQuery, dashboardIdInPathRequired, databaseIdInQueryRequired, includeRows, limitInQueryOptional, mappingInQueryRequiredContract, nameInQueryOptional, orgIdInPathRequired, pageInQueryOptional, relationId, rootEntitiesInQueryOptional, rootEntityInQueryOptional, scopeIdInQueryRequired, scopeTypeInQueryRequired, scopeTypeOrgInQueryRequired, sectionKeyInQueryOptional, sectionKeyInQueryRequired, sectionTypeInQueryOptional, sectionTypeInQueryRequired, sourceDashboardIdInQueryRequired, sourceIndexInQueryRequired, targetDashboardIdInQueryRequired, templateIdInPathRequired, viewIdInPathRequired, viewIdInQueryOptional, viewIdInQueryRequired } from "./shared/parameters";
|
|
15
18
|
export * from "./system/system";
|
|
16
|
-
export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
|
|
19
|
+
export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenMetaContract, TokenMetaIssuerContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
|
package/dist/types/index.js
CHANGED
|
@@ -20,7 +20,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
20
20
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./billing/billing"), exports);
|
|
24
|
+
__exportStar(require("./isolated-store/isolated-store"), exports);
|
|
23
25
|
__exportStar(require("./note/note"), exports);
|
|
26
|
+
__exportStar(require("./org-group/org-group"), exports);
|
|
24
27
|
__exportStar(require("./shared/common"), exports);
|
|
25
28
|
__exportStar(require("./shared/enums"), exports);
|
|
26
29
|
__exportStar(require("./system/system"), exports);
|