@dynamic-labs/sdk-api 0.0.1060 → 0.0.1062
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/package.json +1 -1
- package/src/apis/AdminActionsApi.cjs +3 -1
- package/src/apis/AdminActionsApi.js +3 -1
- package/src/apis/AllowlistsApi.cjs +3 -1
- package/src/apis/AllowlistsApi.js +3 -1
- package/src/apis/AnalyticsApi.cjs +3 -1
- package/src/apis/AnalyticsApi.js +3 -1
- package/src/apis/AuthorizedClientsApi.cjs +3 -1
- package/src/apis/AuthorizedClientsApi.js +3 -1
- package/src/apis/CaptchaApi.cjs +3 -1
- package/src/apis/CaptchaApi.js +3 -1
- package/src/apis/ChainalysisApi.cjs +3 -1
- package/src/apis/ChainalysisApi.js +3 -1
- package/src/apis/ChainsApi.cjs +3 -1
- package/src/apis/ChainsApi.js +3 -1
- package/src/apis/CheckoutApi.cjs +3 -1
- package/src/apis/CheckoutApi.js +3 -1
- package/src/apis/ClientGrantApi.cjs +3 -1
- package/src/apis/ClientGrantApi.js +3 -1
- package/src/apis/CustomFieldsApi.cjs +3 -1
- package/src/apis/CustomFieldsApi.js +3 -1
- package/src/apis/CustomHostnamesApi.cjs +3 -1
- package/src/apis/CustomHostnamesApi.js +3 -1
- package/src/apis/CustomNetworksApi.cjs +3 -1
- package/src/apis/CustomNetworksApi.js +3 -1
- package/src/apis/DeeplinkUrlsApi.cjs +3 -1
- package/src/apis/DeeplinkUrlsApi.js +3 -1
- package/src/apis/EnvironmentsApi.cjs +3 -1
- package/src/apis/EnvironmentsApi.js +3 -1
- package/src/apis/EventsApi.cjs +3 -1
- package/src/apis/EventsApi.js +3 -1
- package/src/apis/ExchangesApi.cjs +3 -1
- package/src/apis/ExchangesApi.js +3 -1
- package/src/apis/ExportsApi.cjs +3 -1
- package/src/apis/ExportsApi.js +3 -1
- package/src/apis/ExternalJwtApi.cjs +3 -1
- package/src/apis/ExternalJwtApi.js +3 -1
- package/src/apis/FlowAnalyticsApi.cjs +3 -1
- package/src/apis/FlowAnalyticsApi.js +3 -1
- package/src/apis/GatesApi.cjs +3 -1
- package/src/apis/GatesApi.js +3 -1
- package/src/apis/GlobalWalletAccessControlApi.cjs +3 -1
- package/src/apis/GlobalWalletAccessControlApi.js +3 -1
- package/src/apis/GlobalWalletConnectionsApi.cjs +3 -1
- package/src/apis/GlobalWalletConnectionsApi.js +3 -1
- package/src/apis/GlobalWalletsApi.cjs +3 -1
- package/src/apis/GlobalWalletsApi.js +3 -1
- package/src/apis/InvitesApi.cjs +3 -1
- package/src/apis/InvitesApi.js +3 -1
- package/src/apis/MembersApi.cjs +3 -1
- package/src/apis/MembersApi.js +3 -1
- package/src/apis/MfaSettingsApi.cjs +3 -1
- package/src/apis/MfaSettingsApi.js +3 -1
- package/src/apis/NameServicesApi.cjs +3 -1
- package/src/apis/NameServicesApi.js +3 -1
- package/src/apis/OrganizationSettingsApi.cjs +3 -1
- package/src/apis/OrganizationSettingsApi.js +3 -1
- package/src/apis/OrganizationsApi.cjs +3 -1
- package/src/apis/OrganizationsApi.js +3 -1
- package/src/apis/OriginsApi.cjs +3 -1
- package/src/apis/OriginsApi.js +3 -1
- package/src/apis/ProjectsApi.cjs +3 -1
- package/src/apis/ProjectsApi.js +3 -1
- package/src/apis/ProvidersApi.cjs +3 -1
- package/src/apis/ProvidersApi.js +3 -1
- package/src/apis/SDKApi.cjs +301 -0
- package/src/apis/SDKApi.d.ts +119 -1
- package/src/apis/SDKApi.js +301 -0
- package/src/apis/SDKViewsApi.cjs +3 -1
- package/src/apis/SDKViewsApi.js +3 -1
- package/src/apis/SessionsApi.cjs +3 -1
- package/src/apis/SessionsApi.js +3 -1
- package/src/apis/TestAccountApi.cjs +3 -1
- package/src/apis/TestAccountApi.js +3 -1
- package/src/apis/TokensApi.cjs +3 -1
- package/src/apis/TokensApi.js +3 -1
- package/src/apis/UserApiTokensApi.cjs +3 -1
- package/src/apis/UserApiTokensApi.js +3 -1
- package/src/apis/UsersApi.cjs +3 -1
- package/src/apis/UsersApi.js +3 -1
- package/src/apis/VisitsApi.cjs +3 -1
- package/src/apis/VisitsApi.js +3 -1
- package/src/apis/WaasApi.cjs +3 -1
- package/src/apis/WaasApi.js +3 -1
- package/src/apis/WalletConnectApi.cjs +3 -1
- package/src/apis/WalletConnectApi.js +3 -1
- package/src/apis/WalletsApi.cjs +3 -1
- package/src/apis/WalletsApi.js +3 -1
- package/src/apis/WebhooksApi.cjs +3 -1
- package/src/apis/WebhooksApi.js +3 -1
- package/src/index.cjs +60 -0
- package/src/index.js +13 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js +35 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +35 -0
- package/src/models/BusinessAccount.cjs +45 -0
- package/src/models/BusinessAccount.d.ts +63 -0
- package/src/models/BusinessAccount.js +39 -0
- package/src/models/BusinessAccountDetail.cjs +51 -0
- package/src/models/BusinessAccountDetail.d.ts +77 -0
- package/src/models/BusinessAccountDetail.js +45 -0
- package/src/models/BusinessAccountDetailAllOf.cjs +36 -0
- package/src/models/BusinessAccountDetailAllOf.d.ts +35 -0
- package/src/models/BusinessAccountDetailAllOf.js +30 -0
- package/src/models/BusinessAccountList.cjs +36 -0
- package/src/models/BusinessAccountList.d.ts +34 -0
- package/src/models/BusinessAccountList.js +30 -0
- package/src/models/BusinessAccountMember.cjs +44 -0
- package/src/models/BusinessAccountMember.d.ts +58 -0
- package/src/models/BusinessAccountMember.js +38 -0
- package/src/models/BusinessAccountMemberRole.cjs +41 -0
- package/src/models/BusinessAccountMemberRole.d.ts +24 -0
- package/src/models/BusinessAccountMemberRole.js +35 -0
- package/src/models/BusinessAccountSigner.cjs +54 -0
- package/src/models/BusinessAccountSigner.d.ts +88 -0
- package/src/models/BusinessAccountSigner.js +48 -0
- package/src/models/BusinessAccountSignerType.cjs +40 -0
- package/src/models/BusinessAccountSignerType.d.ts +23 -0
- package/src/models/BusinessAccountSignerType.js +34 -0
- package/src/models/CreateBusinessAccountSdkRequest.cjs +37 -0
- package/src/models/CreateBusinessAccountSdkRequest.d.ts +39 -0
- package/src/models/CreateBusinessAccountSdkRequest.js +31 -0
- package/src/models/FeeRecipientConfig.cjs +45 -0
- package/src/models/FeeRecipientConfig.d.ts +33 -0
- package/src/models/FeeRecipientConfig.js +39 -0
- package/src/models/FlowCreateRequest.cjs +3 -0
- package/src/models/FlowCreateRequest.d.ts +7 -0
- package/src/models/FlowCreateRequest.js +3 -0
- package/src/models/FlowFeeConfig.cjs +33 -0
- package/src/models/FlowFeeConfig.d.ts +28 -0
- package/src/models/FlowFeeConfig.js +27 -0
- package/src/models/index.d.ts +13 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A multi-operator wallet container (product name "Business Accounts")
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BusinessAccount
|
|
16
|
+
*/
|
|
17
|
+
export interface BusinessAccount {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BusinessAccount
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BusinessAccount
|
|
28
|
+
*/
|
|
29
|
+
projectEnvironmentId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BusinessAccount
|
|
34
|
+
*/
|
|
35
|
+
name?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Developer-supplied stable ID inside the env
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BusinessAccount
|
|
40
|
+
*/
|
|
41
|
+
externalRef?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof BusinessAccount
|
|
46
|
+
*/
|
|
47
|
+
metadata?: object;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof BusinessAccount
|
|
52
|
+
*/
|
|
53
|
+
createdAt?: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof BusinessAccount
|
|
58
|
+
*/
|
|
59
|
+
updatedAt?: Date;
|
|
60
|
+
}
|
|
61
|
+
export declare function BusinessAccountFromJSON(json: any): BusinessAccount;
|
|
62
|
+
export declare function BusinessAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccount;
|
|
63
|
+
export declare function BusinessAccountToJSON(value?: BusinessAccount | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BusinessAccountFromJSON(json) {
|
|
5
|
+
return BusinessAccountFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BusinessAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'id': json['id'],
|
|
13
|
+
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
14
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
15
|
+
'externalRef': !exists(json, 'externalRef') ? undefined : json['externalRef'],
|
|
16
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
17
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
18
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'id': value.id,
|
|
30
|
+
'projectEnvironmentId': value.projectEnvironmentId,
|
|
31
|
+
'name': value.name,
|
|
32
|
+
'externalRef': value.externalRef,
|
|
33
|
+
'metadata': value.metadata,
|
|
34
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
35
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { BusinessAccountFromJSON, BusinessAccountFromJSONTyped, BusinessAccountToJSON };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountMember = require('./BusinessAccountMember.cjs');
|
|
7
|
+
var BusinessAccountSigner = require('./BusinessAccountSigner.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function BusinessAccountDetailFromJSON(json) {
|
|
11
|
+
return BusinessAccountDetailFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function BusinessAccountDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'id': json['id'],
|
|
19
|
+
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
20
|
+
'name': !runtime.exists(json, 'name') ? undefined : json['name'],
|
|
21
|
+
'externalRef': !runtime.exists(json, 'externalRef') ? undefined : json['externalRef'],
|
|
22
|
+
'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
|
|
23
|
+
'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
24
|
+
'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
25
|
+
'members': (json['members'].map(BusinessAccountMember.BusinessAccountMemberFromJSON)),
|
|
26
|
+
'signers': (json['signers'].map(BusinessAccountSigner.BusinessAccountSignerFromJSON)),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function BusinessAccountDetailToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': value.id,
|
|
38
|
+
'projectEnvironmentId': value.projectEnvironmentId,
|
|
39
|
+
'name': value.name,
|
|
40
|
+
'externalRef': value.externalRef,
|
|
41
|
+
'metadata': value.metadata,
|
|
42
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
43
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
44
|
+
'members': (value.members.map(BusinessAccountMember.BusinessAccountMemberToJSON)),
|
|
45
|
+
'signers': (value.signers.map(BusinessAccountSigner.BusinessAccountSignerToJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.BusinessAccountDetailFromJSON = BusinessAccountDetailFromJSON;
|
|
50
|
+
exports.BusinessAccountDetailFromJSONTyped = BusinessAccountDetailFromJSONTyped;
|
|
51
|
+
exports.BusinessAccountDetailToJSON = BusinessAccountDetailToJSON;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BusinessAccountMember } from './BusinessAccountMember';
|
|
13
|
+
import { BusinessAccountSigner } from './BusinessAccountSigner';
|
|
14
|
+
/**
|
|
15
|
+
* SDK-side business account response with embedded members and signers. Origin 2 callers (low member count) get everything in one fetch; if a workspace ever needs pagination we add a separate paginated list endpoint without changing this shape.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BusinessAccountDetail
|
|
18
|
+
*/
|
|
19
|
+
export interface BusinessAccountDetail {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BusinessAccountDetail
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BusinessAccountDetail
|
|
30
|
+
*/
|
|
31
|
+
projectEnvironmentId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BusinessAccountDetail
|
|
36
|
+
*/
|
|
37
|
+
name?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Developer-supplied stable ID inside the env
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BusinessAccountDetail
|
|
42
|
+
*/
|
|
43
|
+
externalRef?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof BusinessAccountDetail
|
|
48
|
+
*/
|
|
49
|
+
metadata?: object;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof BusinessAccountDetail
|
|
54
|
+
*/
|
|
55
|
+
createdAt?: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof BusinessAccountDetail
|
|
60
|
+
*/
|
|
61
|
+
updatedAt?: Date;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<BusinessAccountMember>}
|
|
65
|
+
* @memberof BusinessAccountDetail
|
|
66
|
+
*/
|
|
67
|
+
members: Array<BusinessAccountMember>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<BusinessAccountSigner>}
|
|
71
|
+
* @memberof BusinessAccountDetail
|
|
72
|
+
*/
|
|
73
|
+
signers: Array<BusinessAccountSigner>;
|
|
74
|
+
}
|
|
75
|
+
export declare function BusinessAccountDetailFromJSON(json: any): BusinessAccountDetail;
|
|
76
|
+
export declare function BusinessAccountDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountDetail;
|
|
77
|
+
export declare function BusinessAccountDetailToJSON(value?: BusinessAccountDetail | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountMemberFromJSON, BusinessAccountMemberToJSON } from './BusinessAccountMember.js';
|
|
3
|
+
import { BusinessAccountSignerFromJSON, BusinessAccountSignerToJSON } from './BusinessAccountSigner.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function BusinessAccountDetailFromJSON(json) {
|
|
7
|
+
return BusinessAccountDetailFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function BusinessAccountDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'id': json['id'],
|
|
15
|
+
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
16
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
17
|
+
'externalRef': !exists(json, 'externalRef') ? undefined : json['externalRef'],
|
|
18
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
19
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
20
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
21
|
+
'members': (json['members'].map(BusinessAccountMemberFromJSON)),
|
|
22
|
+
'signers': (json['signers'].map(BusinessAccountSignerFromJSON)),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function BusinessAccountDetailToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'id': value.id,
|
|
34
|
+
'projectEnvironmentId': value.projectEnvironmentId,
|
|
35
|
+
'name': value.name,
|
|
36
|
+
'externalRef': value.externalRef,
|
|
37
|
+
'metadata': value.metadata,
|
|
38
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
39
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
40
|
+
'members': (value.members.map(BusinessAccountMemberToJSON)),
|
|
41
|
+
'signers': (value.signers.map(BusinessAccountSignerToJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { BusinessAccountDetailFromJSON, BusinessAccountDetailFromJSONTyped, BusinessAccountDetailToJSON };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BusinessAccountMember = require('./BusinessAccountMember.cjs');
|
|
6
|
+
var BusinessAccountSigner = require('./BusinessAccountSigner.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function BusinessAccountDetailAllOfFromJSON(json) {
|
|
10
|
+
return BusinessAccountDetailAllOfFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function BusinessAccountDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'members': (json['members'].map(BusinessAccountMember.BusinessAccountMemberFromJSON)),
|
|
18
|
+
'signers': (json['signers'].map(BusinessAccountSigner.BusinessAccountSignerFromJSON)),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountDetailAllOfToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'members': (value.members.map(BusinessAccountMember.BusinessAccountMemberToJSON)),
|
|
30
|
+
'signers': (value.signers.map(BusinessAccountSigner.BusinessAccountSignerToJSON)),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.BusinessAccountDetailAllOfFromJSON = BusinessAccountDetailAllOfFromJSON;
|
|
35
|
+
exports.BusinessAccountDetailAllOfFromJSONTyped = BusinessAccountDetailAllOfFromJSONTyped;
|
|
36
|
+
exports.BusinessAccountDetailAllOfToJSON = BusinessAccountDetailAllOfToJSON;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BusinessAccountMember } from './BusinessAccountMember';
|
|
13
|
+
import { BusinessAccountSigner } from './BusinessAccountSigner';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BusinessAccountDetailAllOf
|
|
18
|
+
*/
|
|
19
|
+
export interface BusinessAccountDetailAllOf {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<BusinessAccountMember>}
|
|
23
|
+
* @memberof BusinessAccountDetailAllOf
|
|
24
|
+
*/
|
|
25
|
+
members: Array<BusinessAccountMember>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<BusinessAccountSigner>}
|
|
29
|
+
* @memberof BusinessAccountDetailAllOf
|
|
30
|
+
*/
|
|
31
|
+
signers: Array<BusinessAccountSigner>;
|
|
32
|
+
}
|
|
33
|
+
export declare function BusinessAccountDetailAllOfFromJSON(json: any): BusinessAccountDetailAllOf;
|
|
34
|
+
export declare function BusinessAccountDetailAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountDetailAllOf;
|
|
35
|
+
export declare function BusinessAccountDetailAllOfToJSON(value?: BusinessAccountDetailAllOf | null): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BusinessAccountMemberFromJSON, BusinessAccountMemberToJSON } from './BusinessAccountMember.js';
|
|
2
|
+
import { BusinessAccountSignerFromJSON, BusinessAccountSignerToJSON } from './BusinessAccountSigner.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function BusinessAccountDetailAllOfFromJSON(json) {
|
|
6
|
+
return BusinessAccountDetailAllOfFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function BusinessAccountDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'members': (json['members'].map(BusinessAccountMemberFromJSON)),
|
|
14
|
+
'signers': (json['signers'].map(BusinessAccountSignerFromJSON)),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function BusinessAccountDetailAllOfToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'members': (value.members.map(BusinessAccountMemberToJSON)),
|
|
26
|
+
'signers': (value.signers.map(BusinessAccountSignerToJSON)),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { BusinessAccountDetailAllOfFromJSON, BusinessAccountDetailAllOfFromJSONTyped, BusinessAccountDetailAllOfToJSON };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccount = require('./BusinessAccount.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function BusinessAccountListFromJSON(json) {
|
|
10
|
+
return BusinessAccountListFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function BusinessAccountListFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'items': !runtime.exists(json, 'items') ? undefined : (json['items'].map(BusinessAccount.BusinessAccountFromJSON)),
|
|
18
|
+
'nextCursor': !runtime.exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountListToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'items': value.items === undefined ? undefined : (value.items.map(BusinessAccount.BusinessAccountToJSON)),
|
|
30
|
+
'nextCursor': value.nextCursor,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.BusinessAccountListFromJSON = BusinessAccountListFromJSON;
|
|
35
|
+
exports.BusinessAccountListFromJSONTyped = BusinessAccountListFromJSONTyped;
|
|
36
|
+
exports.BusinessAccountListToJSON = BusinessAccountListToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BusinessAccount } from './BusinessAccount';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BusinessAccountList
|
|
17
|
+
*/
|
|
18
|
+
export interface BusinessAccountList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<BusinessAccount>}
|
|
22
|
+
* @memberof BusinessAccountList
|
|
23
|
+
*/
|
|
24
|
+
items?: Array<BusinessAccount>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BusinessAccountList
|
|
29
|
+
*/
|
|
30
|
+
nextCursor?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function BusinessAccountListFromJSON(json: any): BusinessAccountList;
|
|
33
|
+
export declare function BusinessAccountListFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountList;
|
|
34
|
+
export declare function BusinessAccountListToJSON(value?: BusinessAccountList | null): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountFromJSON, BusinessAccountToJSON } from './BusinessAccount.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function BusinessAccountListFromJSON(json) {
|
|
6
|
+
return BusinessAccountListFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function BusinessAccountListFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'items': !exists(json, 'items') ? undefined : (json['items'].map(BusinessAccountFromJSON)),
|
|
14
|
+
'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function BusinessAccountListToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'items': value.items === undefined ? undefined : (value.items.map(BusinessAccountToJSON)),
|
|
26
|
+
'nextCursor': value.nextCursor,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { BusinessAccountListFromJSON, BusinessAccountListFromJSONTyped, BusinessAccountListToJSON };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountMemberRole = require('./BusinessAccountMemberRole.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function BusinessAccountMemberFromJSON(json) {
|
|
10
|
+
return BusinessAccountMemberFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'id': json['id'],
|
|
18
|
+
'businessAccountId': json['businessAccountId'],
|
|
19
|
+
'userId': json['userId'],
|
|
20
|
+
'role': BusinessAccountMemberRole.BusinessAccountMemberRoleFromJSON(json['role']),
|
|
21
|
+
'addedByUserId': !runtime.exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
|
|
22
|
+
'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function BusinessAccountMemberToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'id': value.id,
|
|
34
|
+
'businessAccountId': value.businessAccountId,
|
|
35
|
+
'userId': value.userId,
|
|
36
|
+
'role': BusinessAccountMemberRole.BusinessAccountMemberRoleToJSON(value.role),
|
|
37
|
+
'addedByUserId': value.addedByUserId,
|
|
38
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.BusinessAccountMemberFromJSON = BusinessAccountMemberFromJSON;
|
|
43
|
+
exports.BusinessAccountMemberFromJSONTyped = BusinessAccountMemberFromJSONTyped;
|
|
44
|
+
exports.BusinessAccountMemberToJSON = BusinessAccountMemberToJSON;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BusinessAccountMemberRole } from './BusinessAccountMemberRole';
|
|
13
|
+
/**
|
|
14
|
+
* Admin-reach membership in a business account
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BusinessAccountMember
|
|
17
|
+
*/
|
|
18
|
+
export interface BusinessAccountMember {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BusinessAccountMember
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BusinessAccountMember
|
|
29
|
+
*/
|
|
30
|
+
businessAccountId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BusinessAccountMember
|
|
35
|
+
*/
|
|
36
|
+
userId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {BusinessAccountMemberRole}
|
|
40
|
+
* @memberof BusinessAccountMember
|
|
41
|
+
*/
|
|
42
|
+
role: BusinessAccountMemberRole;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BusinessAccountMember
|
|
47
|
+
*/
|
|
48
|
+
addedByUserId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof BusinessAccountMember
|
|
53
|
+
*/
|
|
54
|
+
createdAt?: Date;
|
|
55
|
+
}
|
|
56
|
+
export declare function BusinessAccountMemberFromJSON(json: any): BusinessAccountMember;
|
|
57
|
+
export declare function BusinessAccountMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountMember;
|
|
58
|
+
export declare function BusinessAccountMemberToJSON(value?: BusinessAccountMember | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleToJSON } from './BusinessAccountMemberRole.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function BusinessAccountMemberFromJSON(json) {
|
|
6
|
+
return BusinessAccountMemberFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'id': json['id'],
|
|
14
|
+
'businessAccountId': json['businessAccountId'],
|
|
15
|
+
'userId': json['userId'],
|
|
16
|
+
'role': BusinessAccountMemberRoleFromJSON(json['role']),
|
|
17
|
+
'addedByUserId': !exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
|
|
18
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountMemberToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'id': value.id,
|
|
30
|
+
'businessAccountId': value.businessAccountId,
|
|
31
|
+
'userId': value.userId,
|
|
32
|
+
'role': BusinessAccountMemberRoleToJSON(value.role),
|
|
33
|
+
'addedByUserId': value.addedByUserId,
|
|
34
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { BusinessAccountMemberFromJSON, BusinessAccountMemberFromJSONTyped, BusinessAccountMemberToJSON };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Role of a business account member (admin reach)
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.BusinessAccountMemberRole = void 0;
|
|
24
|
+
(function (BusinessAccountMemberRole) {
|
|
25
|
+
BusinessAccountMemberRole["Owner"] = "owner";
|
|
26
|
+
BusinessAccountMemberRole["Admin"] = "admin";
|
|
27
|
+
BusinessAccountMemberRole["Viewer"] = "viewer";
|
|
28
|
+
})(exports.BusinessAccountMemberRole || (exports.BusinessAccountMemberRole = {}));
|
|
29
|
+
function BusinessAccountMemberRoleFromJSON(json) {
|
|
30
|
+
return BusinessAccountMemberRoleFromJSONTyped(json);
|
|
31
|
+
}
|
|
32
|
+
function BusinessAccountMemberRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
function BusinessAccountMemberRoleToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.BusinessAccountMemberRoleFromJSON = BusinessAccountMemberRoleFromJSON;
|
|
40
|
+
exports.BusinessAccountMemberRoleFromJSONTyped = BusinessAccountMemberRoleFromJSONTyped;
|
|
41
|
+
exports.BusinessAccountMemberRoleToJSON = BusinessAccountMemberRoleToJSON;
|