@dynamic-labs/sdk-api 0.33.0 → 0.35.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.
- package/package.json +1 -1
- package/src/apis/AdminActionsApi.cjs +6 -0
- package/src/apis/AdminActionsApi.js +6 -0
- package/src/apis/AllowlistsApi.cjs +6 -0
- package/src/apis/AllowlistsApi.js +6 -0
- package/src/apis/AnalyticsApi.cjs +6 -0
- package/src/apis/AnalyticsApi.js +6 -0
- package/src/apis/AuthorizedClientsApi.cjs +6 -0
- package/src/apis/AuthorizedClientsApi.js +6 -0
- package/src/apis/BusinessAccountsApi.cjs +6 -0
- package/src/apis/BusinessAccountsApi.js +6 -0
- package/src/apis/CaptchaApi.cjs +6 -0
- package/src/apis/CaptchaApi.js +6 -0
- package/src/apis/ChainalysisApi.cjs +6 -0
- package/src/apis/ChainalysisApi.js +6 -0
- package/src/apis/ChainsApi.cjs +6 -0
- package/src/apis/ChainsApi.js +6 -0
- package/src/apis/CheckoutApi.cjs +6 -0
- package/src/apis/CheckoutApi.js +6 -0
- package/src/apis/ClientGrantApi.cjs +6 -0
- package/src/apis/ClientGrantApi.js +6 -0
- package/src/apis/CustomFieldsApi.cjs +6 -0
- package/src/apis/CustomFieldsApi.js +6 -0
- package/src/apis/CustomHostnamesApi.cjs +6 -0
- package/src/apis/CustomHostnamesApi.js +6 -0
- package/src/apis/CustomNetworksApi.cjs +6 -0
- package/src/apis/CustomNetworksApi.js +6 -0
- package/src/apis/DeeplinkUrlsApi.cjs +6 -0
- package/src/apis/DeeplinkUrlsApi.js +6 -0
- package/src/apis/EnvironmentsApi.cjs +6 -0
- package/src/apis/EnvironmentsApi.js +6 -0
- package/src/apis/EventsApi.cjs +6 -0
- package/src/apis/EventsApi.js +6 -0
- package/src/apis/ExchangesApi.cjs +6 -0
- package/src/apis/ExchangesApi.js +6 -0
- package/src/apis/ExportsApi.cjs +6 -0
- package/src/apis/ExportsApi.js +6 -0
- package/src/apis/ExternalJwtApi.cjs +6 -0
- package/src/apis/ExternalJwtApi.js +6 -0
- package/src/apis/FlowAnalyticsApi.cjs +6 -0
- package/src/apis/FlowAnalyticsApi.js +6 -0
- package/src/apis/GaslessApi.cjs +6 -0
- package/src/apis/GaslessApi.js +6 -0
- package/src/apis/GatesApi.cjs +6 -0
- package/src/apis/GatesApi.js +6 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +6 -0
- package/src/apis/GlobalWalletAccessControlApi.js +6 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +6 -0
- package/src/apis/GlobalWalletConnectionsApi.js +6 -0
- package/src/apis/GlobalWalletsApi.cjs +6 -0
- package/src/apis/GlobalWalletsApi.js +6 -0
- package/src/apis/InvitesApi.cjs +6 -0
- package/src/apis/InvitesApi.js +6 -0
- package/src/apis/KybApi.cjs +6 -0
- package/src/apis/KybApi.js +6 -0
- package/src/apis/MembersApi.cjs +6 -0
- package/src/apis/MembersApi.js +6 -0
- package/src/apis/MfaSettingsApi.cjs +6 -0
- package/src/apis/MfaSettingsApi.js +6 -0
- package/src/apis/NameServicesApi.cjs +6 -0
- package/src/apis/NameServicesApi.js +6 -0
- package/src/apis/OrganizationSettingsApi.cjs +6 -0
- package/src/apis/OrganizationSettingsApi.js +6 -0
- package/src/apis/OrganizationsApi.cjs +6 -0
- package/src/apis/OrganizationsApi.js +6 -0
- package/src/apis/OriginsApi.cjs +6 -0
- package/src/apis/OriginsApi.js +6 -0
- package/src/apis/ProjectsApi.cjs +6 -0
- package/src/apis/ProjectsApi.js +6 -0
- package/src/apis/ProvidersApi.cjs +6 -0
- package/src/apis/ProvidersApi.js +6 -0
- package/src/apis/SDKApi.cjs +739 -4
- package/src/apis/SDKApi.d.ts +298 -5
- package/src/apis/SDKApi.js +739 -4
- package/src/apis/SDKViewsApi.cjs +6 -0
- package/src/apis/SDKViewsApi.js +6 -0
- package/src/apis/ScreeningPoliciesApi.cjs +6 -0
- package/src/apis/ScreeningPoliciesApi.js +6 -0
- package/src/apis/ServerApi.cjs +6 -0
- package/src/apis/ServerApi.js +6 -0
- package/src/apis/SessionsApi.cjs +6 -0
- package/src/apis/SessionsApi.js +6 -0
- package/src/apis/TestAccountApi.cjs +6 -0
- package/src/apis/TestAccountApi.js +6 -0
- package/src/apis/TokensApi.cjs +6 -0
- package/src/apis/TokensApi.js +6 -0
- package/src/apis/UserApiTokensApi.cjs +6 -0
- package/src/apis/UserApiTokensApi.js +6 -0
- package/src/apis/UsersApi.cjs +6 -0
- package/src/apis/UsersApi.js +6 -0
- package/src/apis/VisitsApi.cjs +6 -0
- package/src/apis/VisitsApi.js +6 -0
- package/src/apis/WaasApi.cjs +6 -0
- package/src/apis/WaasApi.js +6 -0
- package/src/apis/WalletConnectApi.cjs +6 -0
- package/src/apis/WalletConnectApi.js +6 -0
- package/src/apis/WalletsApi.cjs +6 -0
- package/src/apis/WalletsApi.js +6 -0
- package/src/apis/WebhooksApi.cjs +6 -0
- package/src/apis/WebhooksApi.js +6 -0
- package/src/apis/YieldApi.cjs +6 -0
- package/src/apis/YieldApi.js +6 -0
- package/src/apis/ZendeskApi.cjs +6 -0
- package/src/apis/ZendeskApi.js +6 -0
- package/src/index.cjs +116 -0
- package/src/index.js +23 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs +6 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +21 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js +6 -0
- package/src/models/ApproveBusinessAccountProposalSdkRequest.cjs +45 -0
- package/src/models/ApproveBusinessAccountProposalSdkRequest.d.ts +33 -0
- package/src/models/ApproveBusinessAccountProposalSdkRequest.js +39 -0
- package/src/models/BusinessAccountApprovalRequirement.cjs +60 -0
- package/src/models/BusinessAccountApprovalRequirement.d.ts +89 -0
- package/src/models/BusinessAccountApprovalRequirement.js +54 -0
- package/src/models/BusinessAccountApprovalRequirementStatus.cjs +43 -0
- package/src/models/BusinessAccountApprovalRequirementStatus.d.ts +58 -0
- package/src/models/BusinessAccountApprovalRequirementStatus.js +37 -0
- package/src/models/BusinessAccountApprovalsPending.cjs +51 -0
- package/src/models/BusinessAccountApprovalsPending.d.ts +64 -0
- package/src/models/BusinessAccountApprovalsPending.js +45 -0
- package/src/models/BusinessAccountForbidden.cjs +36 -0
- package/src/models/BusinessAccountForbidden.d.ts +34 -0
- package/src/models/BusinessAccountForbidden.js +30 -0
- package/src/models/BusinessAccountForbiddenAllOf.cjs +34 -0
- package/src/models/BusinessAccountForbiddenAllOf.d.ts +28 -0
- package/src/models/BusinessAccountForbiddenAllOf.js +28 -0
- package/src/models/BusinessAccountGovernanceResponse.cjs +43 -0
- package/src/models/BusinessAccountGovernanceResponse.d.ts +30 -0
- package/src/models/BusinessAccountGovernanceResponse.js +37 -0
- package/src/models/BusinessAccountGovernedAction.cjs +50 -0
- package/src/models/BusinessAccountGovernedAction.d.ts +33 -0
- package/src/models/BusinessAccountGovernedAction.js +44 -0
- package/src/models/BusinessAccountMutationVersion.cjs +43 -0
- package/src/models/BusinessAccountMutationVersion.d.ts +27 -0
- package/src/models/BusinessAccountMutationVersion.js +37 -0
- package/src/models/BusinessAccountProposal.cjs +62 -0
- package/src/models/BusinessAccountProposal.d.ts +108 -0
- package/src/models/BusinessAccountProposal.js +56 -0
- package/src/models/BusinessAccountProposalApprovalRecord.cjs +37 -0
- package/src/models/BusinessAccountProposalApprovalRecord.d.ts +39 -0
- package/src/models/BusinessAccountProposalApprovalRecord.js +31 -0
- package/src/models/BusinessAccountProposalStatus.cjs +42 -0
- package/src/models/BusinessAccountProposalStatus.d.ts +25 -0
- package/src/models/BusinessAccountProposalStatus.js +36 -0
- package/src/models/BusinessAccountProposalSubject.cjs +35 -0
- package/src/models/BusinessAccountProposalSubject.d.ts +33 -0
- package/src/models/BusinessAccountProposalSubject.js +29 -0
- package/src/models/BusinessAccountRequirementCondition.cjs +43 -0
- package/src/models/BusinessAccountRequirementCondition.d.ts +57 -0
- package/src/models/BusinessAccountRequirementCondition.js +37 -0
- package/src/models/BusinessAccountRoleDefinition.cjs +52 -0
- package/src/models/BusinessAccountRoleDefinition.d.ts +35 -0
- package/src/models/BusinessAccountRoleDefinition.js +46 -0
- package/src/models/BusinessAccountRolesResponse.cjs +34 -0
- package/src/models/BusinessAccountRolesResponse.d.ts +30 -0
- package/src/models/BusinessAccountRolesResponse.js +28 -0
- package/src/models/BusinessAccountSigningRefused.cjs +37 -0
- package/src/models/BusinessAccountSigningRefused.d.ts +39 -0
- package/src/models/BusinessAccountSigningRefused.js +31 -0
- package/src/models/DefineBusinessAccountRoleSdkRequest.cjs +50 -0
- package/src/models/DefineBusinessAccountRoleSdkRequest.d.ts +62 -0
- package/src/models/DefineBusinessAccountRoleSdkRequest.js +44 -0
- package/src/models/DeleteBusinessAccountRoleSdkRequest.cjs +37 -0
- package/src/models/DeleteBusinessAccountRoleSdkRequest.d.ts +42 -0
- package/src/models/DeleteBusinessAccountRoleSdkRequest.js +31 -0
- package/src/models/FlowQuoteRequest.d.ts +1 -1
- package/src/models/RemoveBusinessAccountMemberSdkRequest.cjs +37 -0
- package/src/models/RemoveBusinessAccountMemberSdkRequest.d.ts +42 -0
- package/src/models/RemoveBusinessAccountMemberSdkRequest.js +31 -0
- package/src/models/RemoveBusinessAccountSignerSdkRequest.cjs +37 -0
- package/src/models/RemoveBusinessAccountSignerSdkRequest.d.ts +42 -0
- package/src/models/RemoveBusinessAccountSignerSdkRequest.js +31 -0
- package/src/models/RemoveBusinessAccountWalletSdkRequest.cjs +37 -0
- package/src/models/RemoveBusinessAccountWalletSdkRequest.d.ts +42 -0
- package/src/models/RemoveBusinessAccountWalletSdkRequest.js +31 -0
- package/src/models/SetBusinessAccountGovernanceSdkRequest.cjs +39 -0
- package/src/models/SetBusinessAccountGovernanceSdkRequest.d.ts +51 -0
- package/src/models/SetBusinessAccountGovernanceSdkRequest.js +33 -0
- package/src/models/TokenScope.cjs +8 -0
- package/src/models/TokenScope.d.ts +8 -0
- package/src/models/TokenScope.js +8 -0
- package/src/models/TransferBusinessAccountOwnershipSdkRequest.cjs +8 -12
- package/src/models/TransferBusinessAccountOwnershipSdkRequest.d.ts +21 -0
- package/src/models/TransferBusinessAccountOwnershipSdkRequest.js +8 -12
- package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.cjs +7 -0
- package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.d.ts +21 -0
- package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.js +7 -0
- package/src/models/index.d.ts +23 -0
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
function BusinessAccountGovernanceResponseFromJSON(json) {
|
|
19
|
+
return BusinessAccountGovernanceResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountGovernanceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'governance': json['governance'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function BusinessAccountGovernanceResponseToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'governance': value.governance,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.BusinessAccountGovernanceResponseFromJSON = BusinessAccountGovernanceResponseFromJSON;
|
|
42
|
+
exports.BusinessAccountGovernanceResponseFromJSONTyped = BusinessAccountGovernanceResponseFromJSONTyped;
|
|
43
|
+
exports.BusinessAccountGovernanceResponseToJSON = BusinessAccountGovernanceResponseToJSON;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { BusinessAccountApprovalRequirement } from './BusinessAccountApprovalRequirement';
|
|
13
|
+
/**
|
|
14
|
+
* The approval requirements in force. Empty when the account governs nothing — that is an answer, not a missing resource.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BusinessAccountGovernanceResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface BusinessAccountGovernanceResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Approval requirements keyed by governed action. Replaced wholesale, so a caller changing one action must send the others back unchanged.
|
|
21
|
+
* @type {{ [key: string]: Array<BusinessAccountApprovalRequirement>; }}
|
|
22
|
+
* @memberof BusinessAccountGovernanceResponse
|
|
23
|
+
*/
|
|
24
|
+
governance: {
|
|
25
|
+
[key: string]: Array<BusinessAccountApprovalRequirement>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare function BusinessAccountGovernanceResponseFromJSON(json: any): BusinessAccountGovernanceResponse;
|
|
29
|
+
export declare function BusinessAccountGovernanceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountGovernanceResponse;
|
|
30
|
+
export declare function BusinessAccountGovernanceResponseToJSON(value?: BusinessAccountGovernanceResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function BusinessAccountGovernanceResponseFromJSON(json) {
|
|
15
|
+
return BusinessAccountGovernanceResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function BusinessAccountGovernanceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'governance': json['governance'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function BusinessAccountGovernanceResponseToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'governance': value.governance,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { BusinessAccountGovernanceResponseFromJSON, BusinessAccountGovernanceResponseFromJSONTyped, BusinessAccountGovernanceResponseToJSON };
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* A business-account mutation that an approval requirement can gate.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.BusinessAccountGovernedAction = void 0;
|
|
24
|
+
(function (BusinessAccountGovernedAction) {
|
|
25
|
+
BusinessAccountGovernedAction["AddMember"] = "addMember";
|
|
26
|
+
BusinessAccountGovernedAction["RemoveMember"] = "removeMember";
|
|
27
|
+
BusinessAccountGovernedAction["UpdateMemberRole"] = "updateMemberRole";
|
|
28
|
+
BusinessAccountGovernedAction["TransferOwnership"] = "transferOwnership";
|
|
29
|
+
BusinessAccountGovernedAction["CreateWallet"] = "createWallet";
|
|
30
|
+
BusinessAccountGovernedAction["LinkWallet"] = "linkWallet";
|
|
31
|
+
BusinessAccountGovernedAction["RemoveWallet"] = "removeWallet";
|
|
32
|
+
BusinessAccountGovernedAction["AddSignerToWallet"] = "addSignerToWallet";
|
|
33
|
+
BusinessAccountGovernedAction["RemoveSignerFromWallet"] = "removeSignerFromWallet";
|
|
34
|
+
BusinessAccountGovernedAction["SetGovernance"] = "setGovernance";
|
|
35
|
+
BusinessAccountGovernedAction["DefineRole"] = "defineRole";
|
|
36
|
+
BusinessAccountGovernedAction["DeleteRole"] = "deleteRole";
|
|
37
|
+
})(exports.BusinessAccountGovernedAction || (exports.BusinessAccountGovernedAction = {}));
|
|
38
|
+
function BusinessAccountGovernedActionFromJSON(json) {
|
|
39
|
+
return BusinessAccountGovernedActionFromJSONTyped(json);
|
|
40
|
+
}
|
|
41
|
+
function BusinessAccountGovernedActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
function BusinessAccountGovernedActionToJSON(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.BusinessAccountGovernedActionFromJSON = BusinessAccountGovernedActionFromJSON;
|
|
49
|
+
exports.BusinessAccountGovernedActionFromJSONTyped = BusinessAccountGovernedActionFromJSONTyped;
|
|
50
|
+
exports.BusinessAccountGovernedActionToJSON = BusinessAccountGovernedActionToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 business-account mutation that an approval requirement can gate.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum BusinessAccountGovernedAction {
|
|
18
|
+
AddMember = "addMember",
|
|
19
|
+
RemoveMember = "removeMember",
|
|
20
|
+
UpdateMemberRole = "updateMemberRole",
|
|
21
|
+
TransferOwnership = "transferOwnership",
|
|
22
|
+
CreateWallet = "createWallet",
|
|
23
|
+
LinkWallet = "linkWallet",
|
|
24
|
+
RemoveWallet = "removeWallet",
|
|
25
|
+
AddSignerToWallet = "addSignerToWallet",
|
|
26
|
+
RemoveSignerFromWallet = "removeSignerFromWallet",
|
|
27
|
+
SetGovernance = "setGovernance",
|
|
28
|
+
DefineRole = "defineRole",
|
|
29
|
+
DeleteRole = "deleteRole"
|
|
30
|
+
}
|
|
31
|
+
export declare function BusinessAccountGovernedActionFromJSON(json: any): BusinessAccountGovernedAction;
|
|
32
|
+
export declare function BusinessAccountGovernedActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountGovernedAction;
|
|
33
|
+
export declare function BusinessAccountGovernedActionToJSON(value?: BusinessAccountGovernedAction | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* A business-account mutation that an approval requirement can gate.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var BusinessAccountGovernedAction;
|
|
20
|
+
(function (BusinessAccountGovernedAction) {
|
|
21
|
+
BusinessAccountGovernedAction["AddMember"] = "addMember";
|
|
22
|
+
BusinessAccountGovernedAction["RemoveMember"] = "removeMember";
|
|
23
|
+
BusinessAccountGovernedAction["UpdateMemberRole"] = "updateMemberRole";
|
|
24
|
+
BusinessAccountGovernedAction["TransferOwnership"] = "transferOwnership";
|
|
25
|
+
BusinessAccountGovernedAction["CreateWallet"] = "createWallet";
|
|
26
|
+
BusinessAccountGovernedAction["LinkWallet"] = "linkWallet";
|
|
27
|
+
BusinessAccountGovernedAction["RemoveWallet"] = "removeWallet";
|
|
28
|
+
BusinessAccountGovernedAction["AddSignerToWallet"] = "addSignerToWallet";
|
|
29
|
+
BusinessAccountGovernedAction["RemoveSignerFromWallet"] = "removeSignerFromWallet";
|
|
30
|
+
BusinessAccountGovernedAction["SetGovernance"] = "setGovernance";
|
|
31
|
+
BusinessAccountGovernedAction["DefineRole"] = "defineRole";
|
|
32
|
+
BusinessAccountGovernedAction["DeleteRole"] = "deleteRole";
|
|
33
|
+
})(BusinessAccountGovernedAction || (BusinessAccountGovernedAction = {}));
|
|
34
|
+
function BusinessAccountGovernedActionFromJSON(json) {
|
|
35
|
+
return BusinessAccountGovernedActionFromJSONTyped(json);
|
|
36
|
+
}
|
|
37
|
+
function BusinessAccountGovernedActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
function BusinessAccountGovernedActionToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { BusinessAccountGovernedAction, BusinessAccountGovernedActionFromJSON, BusinessAccountGovernedActionFromJSONTyped, BusinessAccountGovernedActionToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
function BusinessAccountMutationVersionFromJSON(json) {
|
|
19
|
+
return BusinessAccountMutationVersionFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountMutationVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'version': json['version'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function BusinessAccountMutationVersionToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'version': value.version,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.BusinessAccountMutationVersionFromJSON = BusinessAccountMutationVersionFromJSON;
|
|
42
|
+
exports.BusinessAccountMutationVersionFromJSONTyped = BusinessAccountMutationVersionFromJSONTyped;
|
|
43
|
+
exports.BusinessAccountMutationVersionToJSON = BusinessAccountMutationVersionToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* The new version of the signed authorization document.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BusinessAccountMutationVersion
|
|
16
|
+
*/
|
|
17
|
+
export interface BusinessAccountMutationVersion {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof BusinessAccountMutationVersion
|
|
22
|
+
*/
|
|
23
|
+
version: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function BusinessAccountMutationVersionFromJSON(json: any): BusinessAccountMutationVersion;
|
|
26
|
+
export declare function BusinessAccountMutationVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountMutationVersion;
|
|
27
|
+
export declare function BusinessAccountMutationVersionToJSON(value?: BusinessAccountMutationVersion | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function BusinessAccountMutationVersionFromJSON(json) {
|
|
15
|
+
return BusinessAccountMutationVersionFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function BusinessAccountMutationVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'version': json['version'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function BusinessAccountMutationVersionToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'version': value.version,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { BusinessAccountMutationVersionFromJSON, BusinessAccountMutationVersionFromJSONTyped, BusinessAccountMutationVersionToJSON };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountApprovalRequirementStatus = require('./BusinessAccountApprovalRequirementStatus.cjs');
|
|
7
|
+
var BusinessAccountGovernedAction = require('./BusinessAccountGovernedAction.cjs');
|
|
8
|
+
var BusinessAccountProposalApprovalRecord = require('./BusinessAccountProposalApprovalRecord.cjs');
|
|
9
|
+
var BusinessAccountProposalStatus = require('./BusinessAccountProposalStatus.cjs');
|
|
10
|
+
var BusinessAccountProposalSubject = require('./BusinessAccountProposalSubject.cjs');
|
|
11
|
+
|
|
12
|
+
/* tslint:disable */
|
|
13
|
+
function BusinessAccountProposalFromJSON(json) {
|
|
14
|
+
return BusinessAccountProposalFromJSONTyped(json);
|
|
15
|
+
}
|
|
16
|
+
function BusinessAccountProposalFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if ((json === undefined) || (json === null)) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
'id': json['id'],
|
|
22
|
+
'businessAccountId': json['businessAccountId'],
|
|
23
|
+
'actionType': BusinessAccountGovernedAction.BusinessAccountGovernedActionFromJSON(json['actionType']),
|
|
24
|
+
'status': BusinessAccountProposalStatus.BusinessAccountProposalStatusFromJSON(json['status']),
|
|
25
|
+
'initiatorUserId': json['initiatorUserId'],
|
|
26
|
+
'intent': json['intent'],
|
|
27
|
+
'completeBy': (new Date(json['completeBy'])),
|
|
28
|
+
'consumedAt': !runtime.exists(json, 'consumedAt') ? undefined : (json['consumedAt'] === null ? null : new Date(json['consumedAt'])),
|
|
29
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
30
|
+
'approvals': (json['approvals'].map(BusinessAccountProposalApprovalRecord.BusinessAccountProposalApprovalRecordFromJSON)),
|
|
31
|
+
'autoExecute': !runtime.exists(json, 'autoExecute') ? undefined : json['autoExecute'],
|
|
32
|
+
'subjects': !runtime.exists(json, 'subjects') ? undefined : (json['subjects'].map(BusinessAccountProposalSubject.BusinessAccountProposalSubjectFromJSON)),
|
|
33
|
+
'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusFromJSON)),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function BusinessAccountProposalToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value.id,
|
|
45
|
+
'businessAccountId': value.businessAccountId,
|
|
46
|
+
'actionType': BusinessAccountGovernedAction.BusinessAccountGovernedActionToJSON(value.actionType),
|
|
47
|
+
'status': BusinessAccountProposalStatus.BusinessAccountProposalStatusToJSON(value.status),
|
|
48
|
+
'initiatorUserId': value.initiatorUserId,
|
|
49
|
+
'intent': value.intent,
|
|
50
|
+
'completeBy': (value.completeBy.toISOString()),
|
|
51
|
+
'consumedAt': value.consumedAt === undefined ? undefined : (value.consumedAt === null ? null : value.consumedAt.toISOString()),
|
|
52
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
53
|
+
'approvals': (value.approvals.map(BusinessAccountProposalApprovalRecord.BusinessAccountProposalApprovalRecordToJSON)),
|
|
54
|
+
'autoExecute': value.autoExecute,
|
|
55
|
+
'subjects': value.subjects === undefined ? undefined : (value.subjects.map(BusinessAccountProposalSubject.BusinessAccountProposalSubjectToJSON)),
|
|
56
|
+
'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
exports.BusinessAccountProposalFromJSON = BusinessAccountProposalFromJSON;
|
|
61
|
+
exports.BusinessAccountProposalFromJSONTyped = BusinessAccountProposalFromJSONTyped;
|
|
62
|
+
exports.BusinessAccountProposalToJSON = BusinessAccountProposalToJSON;
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { BusinessAccountApprovalRequirementStatus } from './BusinessAccountApprovalRequirementStatus';
|
|
13
|
+
import { BusinessAccountGovernedAction } from './BusinessAccountGovernedAction';
|
|
14
|
+
import { BusinessAccountProposalApprovalRecord } from './BusinessAccountProposalApprovalRecord';
|
|
15
|
+
import { BusinessAccountProposalStatus } from './BusinessAccountProposalStatus';
|
|
16
|
+
import { BusinessAccountProposalSubject } from './BusinessAccountProposalSubject';
|
|
17
|
+
/**
|
|
18
|
+
* A governed mutation waiting on consent. Untrusted workflow state: it records what was proposed and who has signed, and the enclave verifies every signature when the proposal is executed. The signature is over `intent` as stored, so an approver must sign these exact bytes — re-deriving the intent would produce a different `intentId` and invalidate the approvals already collected.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface BusinessAccountProposal
|
|
21
|
+
*/
|
|
22
|
+
export interface BusinessAccountProposal {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof BusinessAccountProposal
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof BusinessAccountProposal
|
|
33
|
+
*/
|
|
34
|
+
businessAccountId: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {BusinessAccountGovernedAction}
|
|
38
|
+
* @memberof BusinessAccountProposal
|
|
39
|
+
*/
|
|
40
|
+
actionType: BusinessAccountGovernedAction;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {BusinessAccountProposalStatus}
|
|
44
|
+
* @memberof BusinessAccountProposal
|
|
45
|
+
*/
|
|
46
|
+
status: BusinessAccountProposalStatus;
|
|
47
|
+
/**
|
|
48
|
+
* Who proposed it. They can never approve their own intent, so they are never counted toward a requirement.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof BusinessAccountProposal
|
|
51
|
+
*/
|
|
52
|
+
initiatorUserId: string;
|
|
53
|
+
/**
|
|
54
|
+
* The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
|
|
55
|
+
* `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
|
|
56
|
+
* @type {{ [key: string]: object; }}
|
|
57
|
+
* @memberof BusinessAccountProposal
|
|
58
|
+
*/
|
|
59
|
+
intent: {
|
|
60
|
+
[key: string]: object;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The one deadline for the whole proposal, derived from the signed intent's `createdAt`. Past it the proposal accepts no further approvals AND can no longer be executed.
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof BusinessAccountProposal
|
|
66
|
+
*/
|
|
67
|
+
completeBy: Date;
|
|
68
|
+
/**
|
|
69
|
+
* When it left `pending`; null while still open.
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof BusinessAccountProposal
|
|
72
|
+
*/
|
|
73
|
+
consumedAt?: Date | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof BusinessAccountProposal
|
|
78
|
+
*/
|
|
79
|
+
createdAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<BusinessAccountProposalApprovalRecord>}
|
|
83
|
+
* @memberof BusinessAccountProposal
|
|
84
|
+
*/
|
|
85
|
+
approvals: Array<BusinessAccountProposalApprovalRecord>;
|
|
86
|
+
/**
|
|
87
|
+
* Whether this applies as soon as its quorum is met, or waits for an explicit execute. A copy of the flag inside the signed intent, which is the authority. An approver needs this to know whether their approval is the one that lands the change.
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof BusinessAccountProposal
|
|
90
|
+
*/
|
|
91
|
+
autoExecute?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The users this change is about, resolved for display — the member being added, the signer being removed, the new owner. Empty for a change that names no user, such as `setGovernance`.
|
|
94
|
+
* @type {Array<BusinessAccountProposalSubject>}
|
|
95
|
+
* @memberof BusinessAccountProposal
|
|
96
|
+
*/
|
|
97
|
+
subjects?: Array<BusinessAccountProposalSubject>;
|
|
98
|
+
/**
|
|
99
|
+
* Every governance rule matching this proposal, with how close each is. Do NOT derive progress from `approvals` — that counts rows, including approvers outside a rule's pool and approvers demoted since they signed.
|
|
100
|
+
* Absent means the tally is unknown (not fetched, or no longer pending); an empty array means nothing is outstanding. Treat the two differently.
|
|
101
|
+
* @type {Array<BusinessAccountApprovalRequirementStatus>}
|
|
102
|
+
* @memberof BusinessAccountProposal
|
|
103
|
+
*/
|
|
104
|
+
approvalRequirements?: Array<BusinessAccountApprovalRequirementStatus>;
|
|
105
|
+
}
|
|
106
|
+
export declare function BusinessAccountProposalFromJSON(json: any): BusinessAccountProposal;
|
|
107
|
+
export declare function BusinessAccountProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountProposal;
|
|
108
|
+
export declare function BusinessAccountProposalToJSON(value?: BusinessAccountProposal | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountApprovalRequirementStatusFromJSON, BusinessAccountApprovalRequirementStatusToJSON } from './BusinessAccountApprovalRequirementStatus.js';
|
|
3
|
+
import { BusinessAccountGovernedActionFromJSON, BusinessAccountGovernedActionToJSON } from './BusinessAccountGovernedAction.js';
|
|
4
|
+
import { BusinessAccountProposalApprovalRecordFromJSON, BusinessAccountProposalApprovalRecordToJSON } from './BusinessAccountProposalApprovalRecord.js';
|
|
5
|
+
import { BusinessAccountProposalStatusFromJSON, BusinessAccountProposalStatusToJSON } from './BusinessAccountProposalStatus.js';
|
|
6
|
+
import { BusinessAccountProposalSubjectFromJSON, BusinessAccountProposalSubjectToJSON } from './BusinessAccountProposalSubject.js';
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function BusinessAccountProposalFromJSON(json) {
|
|
10
|
+
return BusinessAccountProposalFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function BusinessAccountProposalFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'id': json['id'],
|
|
18
|
+
'businessAccountId': json['businessAccountId'],
|
|
19
|
+
'actionType': BusinessAccountGovernedActionFromJSON(json['actionType']),
|
|
20
|
+
'status': BusinessAccountProposalStatusFromJSON(json['status']),
|
|
21
|
+
'initiatorUserId': json['initiatorUserId'],
|
|
22
|
+
'intent': json['intent'],
|
|
23
|
+
'completeBy': (new Date(json['completeBy'])),
|
|
24
|
+
'consumedAt': !exists(json, 'consumedAt') ? undefined : (json['consumedAt'] === null ? null : new Date(json['consumedAt'])),
|
|
25
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
26
|
+
'approvals': (json['approvals'].map(BusinessAccountProposalApprovalRecordFromJSON)),
|
|
27
|
+
'autoExecute': !exists(json, 'autoExecute') ? undefined : json['autoExecute'],
|
|
28
|
+
'subjects': !exists(json, 'subjects') ? undefined : (json['subjects'].map(BusinessAccountProposalSubjectFromJSON)),
|
|
29
|
+
'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatusFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function BusinessAccountProposalToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value.id,
|
|
41
|
+
'businessAccountId': value.businessAccountId,
|
|
42
|
+
'actionType': BusinessAccountGovernedActionToJSON(value.actionType),
|
|
43
|
+
'status': BusinessAccountProposalStatusToJSON(value.status),
|
|
44
|
+
'initiatorUserId': value.initiatorUserId,
|
|
45
|
+
'intent': value.intent,
|
|
46
|
+
'completeBy': (value.completeBy.toISOString()),
|
|
47
|
+
'consumedAt': value.consumedAt === undefined ? undefined : (value.consumedAt === null ? null : value.consumedAt.toISOString()),
|
|
48
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
49
|
+
'approvals': (value.approvals.map(BusinessAccountProposalApprovalRecordToJSON)),
|
|
50
|
+
'autoExecute': value.autoExecute,
|
|
51
|
+
'subjects': value.subjects === undefined ? undefined : (value.subjects.map(BusinessAccountProposalSubjectToJSON)),
|
|
52
|
+
'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatusToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { BusinessAccountProposalFromJSON, BusinessAccountProposalFromJSONTyped, BusinessAccountProposalToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BusinessAccountProposalApprovalRecordFromJSON(json) {
|
|
9
|
+
return BusinessAccountProposalApprovalRecordFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BusinessAccountProposalApprovalRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'approverUserId': json['approverUserId'],
|
|
17
|
+
'approvedAt': (new Date(json['approvedAt'])),
|
|
18
|
+
'revokedAt': !runtime.exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountProposalApprovalRecordToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'approverUserId': value.approverUserId,
|
|
30
|
+
'approvedAt': (value.approvedAt.toISOString()),
|
|
31
|
+
'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.BusinessAccountProposalApprovalRecordFromJSON = BusinessAccountProposalApprovalRecordFromJSON;
|
|
36
|
+
exports.BusinessAccountProposalApprovalRecordFromJSONTyped = BusinessAccountProposalApprovalRecordFromJSONTyped;
|
|
37
|
+
exports.BusinessAccountProposalApprovalRecordToJSON = BusinessAccountProposalApprovalRecordToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* One approver's recorded consent. Withdrawing sets `revokedAt` rather than deleting the row, so a change of mind stays auditable — a revoked approval is not forwarded to the enclave and does not count toward a requirement.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BusinessAccountProposalApprovalRecord
|
|
16
|
+
*/
|
|
17
|
+
export interface BusinessAccountProposalApprovalRecord {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BusinessAccountProposalApprovalRecord
|
|
22
|
+
*/
|
|
23
|
+
approverUserId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The approver's own signed timestamp, stored as given.
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BusinessAccountProposalApprovalRecord
|
|
28
|
+
*/
|
|
29
|
+
approvedAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Set when the approver withdrew; null while the consent counts.
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof BusinessAccountProposalApprovalRecord
|
|
34
|
+
*/
|
|
35
|
+
revokedAt?: Date | null;
|
|
36
|
+
}
|
|
37
|
+
export declare function BusinessAccountProposalApprovalRecordFromJSON(json: any): BusinessAccountProposalApprovalRecord;
|
|
38
|
+
export declare function BusinessAccountProposalApprovalRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountProposalApprovalRecord;
|
|
39
|
+
export declare function BusinessAccountProposalApprovalRecordToJSON(value?: BusinessAccountProposalApprovalRecord | null): any;
|