@forteplatforms/sdk 1.0.125 → 1.0.139
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/generated/apis/ProjectsServerApi.d.ts +113 -1
- package/dist/generated/apis/ProjectsServerApi.js +475 -2
- package/dist/generated/apis/UsersServerApi.d.ts +15 -1
- package/dist/generated/apis/UsersServerApi.js +59 -0
- package/dist/generated/models/CreatePaymentPreviewRequest.d.ts +52 -0
- package/dist/generated/models/CreatePaymentPreviewRequest.js +61 -0
- package/dist/generated/models/CreatePaymentPreviewResponse.d.ts +70 -0
- package/dist/generated/models/CreatePaymentPreviewResponse.js +71 -0
- package/dist/generated/models/CreatePaymentRequest.d.ts +66 -0
- package/dist/generated/models/CreatePaymentRequest.js +65 -0
- package/dist/generated/models/CreatePaymentResponse.d.ts +51 -0
- package/dist/generated/models/CreatePaymentResponse.js +64 -0
- package/dist/generated/models/ForteApiException.d.ts +15 -0
- package/dist/generated/models/ForteApiException.js +16 -1
- package/dist/generated/models/NotificationTemplatesConfig.d.ts +80 -0
- package/dist/generated/models/NotificationTemplatesConfig.js +65 -0
- package/dist/generated/models/NotificationTemplatesResponse.d.ts +39 -0
- package/dist/generated/models/NotificationTemplatesResponse.js +52 -0
- package/dist/generated/models/PaginatedResponsePaymentObject.d.ts +45 -0
- package/dist/generated/models/PaginatedResponsePaymentObject.js +58 -0
- package/dist/generated/models/PaymentAddress.d.ts +62 -0
- package/dist/generated/models/PaymentAddress.js +67 -0
- package/dist/generated/models/PaymentLineItem.d.ts +56 -0
- package/dist/generated/models/PaymentLineItem.js +63 -0
- package/dist/generated/models/PaymentObject.d.ts +163 -0
- package/dist/generated/models/PaymentObject.js +124 -0
- package/dist/generated/models/PaymentTriggerConfig.d.ts +76 -0
- package/dist/generated/models/PaymentTriggerConfig.js +81 -0
- package/dist/generated/models/ProjectObject.d.ts +20 -0
- package/dist/generated/models/ProjectObject.js +8 -0
- package/dist/generated/models/StateHistory.d.ts +56 -0
- package/dist/generated/models/StateHistory.js +69 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +80 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.js +65 -0
- package/dist/generated/models/UpdateProjectRequest.d.ts +6 -0
- package/dist/generated/models/UpdateProjectRequest.js +2 -0
- package/dist/generated/models/UpsertPaymentTriggerRequest.d.ts +64 -0
- package/dist/generated/models/UpsertPaymentTriggerRequest.js +73 -0
- package/dist/generated/models/UserActionLogObject.d.ts +2 -0
- package/dist/generated/models/UserActionLogObject.js +3 -1
- package/dist/generated/models/UserObject.d.ts +12 -0
- package/dist/generated/models/UserObject.js +4 -0
- package/dist/generated/models/index.d.ts +14 -0
- package/dist/generated/models/index.js +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaymentObjectStateType = void 0;
|
|
17
|
+
exports.instanceOfPaymentObject = instanceOfPaymentObject;
|
|
18
|
+
exports.PaymentObjectFromJSON = PaymentObjectFromJSON;
|
|
19
|
+
exports.PaymentObjectFromJSONTyped = PaymentObjectFromJSONTyped;
|
|
20
|
+
exports.PaymentObjectToJSON = PaymentObjectToJSON;
|
|
21
|
+
exports.PaymentObjectToJSONTyped = PaymentObjectToJSONTyped;
|
|
22
|
+
var PaymentAddress_1 = require("./PaymentAddress");
|
|
23
|
+
var PaymentLineItem_1 = require("./PaymentLineItem");
|
|
24
|
+
var StateHistory_1 = require("./StateHistory");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.PaymentObjectStateType = {
|
|
29
|
+
DRAFT: 'DRAFT',
|
|
30
|
+
PROCESSING: 'PROCESSING',
|
|
31
|
+
COMPLETED: 'COMPLETED',
|
|
32
|
+
CANCELLED: 'CANCELLED',
|
|
33
|
+
FAILED: 'FAILED',
|
|
34
|
+
REFUNDED: 'REFUNDED'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PaymentObject interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfPaymentObject(value) {
|
|
40
|
+
if (!('projectId' in value) || value['projectId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('subtotalCents' in value) || value['subtotalCents'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('amountCents' in value) || value['amountCents'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('stripePaymentIntentId' in value) || value['stripePaymentIntentId'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('stateHistory' in value) || value['stateHistory'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
function PaymentObjectFromJSON(json) {
|
|
65
|
+
return PaymentObjectFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function PaymentObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
73
|
+
'projectId': json['projectId'],
|
|
74
|
+
'userId': json['userId'],
|
|
75
|
+
'state': json['state'],
|
|
76
|
+
'subtotalCents': json['subtotalCents'],
|
|
77
|
+
'taxCents': json['taxCents'] == null ? undefined : json['taxCents'],
|
|
78
|
+
'amountCents': json['amountCents'],
|
|
79
|
+
'currency': json['currency'],
|
|
80
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
81
|
+
'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
|
|
82
|
+
'metadata': json['metadata'],
|
|
83
|
+
'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
|
|
84
|
+
'shippingAddress': json['shippingAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['shippingAddress']),
|
|
85
|
+
'stripePaymentIntentId': json['stripePaymentIntentId'],
|
|
86
|
+
'stripeStatus': json['stripeStatus'] == null ? undefined : json['stripeStatus'],
|
|
87
|
+
'stripeTaxCalculationId': json['stripeTaxCalculationId'] == null ? undefined : json['stripeTaxCalculationId'],
|
|
88
|
+
'stripeTaxTransactionId': json['stripeTaxTransactionId'] == null ? undefined : json['stripeTaxTransactionId'],
|
|
89
|
+
'stateHistory': (json['stateHistory'].map(StateHistory_1.StateHistoryFromJSON)),
|
|
90
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
91
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function PaymentObjectToJSON(json) {
|
|
95
|
+
return PaymentObjectToJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
function PaymentObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
98
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'projectId': value['projectId'],
|
|
105
|
+
'userId': value['userId'],
|
|
106
|
+
'state': value['state'],
|
|
107
|
+
'subtotalCents': value['subtotalCents'],
|
|
108
|
+
'taxCents': value['taxCents'],
|
|
109
|
+
'amountCents': value['amountCents'],
|
|
110
|
+
'currency': value['currency'],
|
|
111
|
+
'description': value['description'],
|
|
112
|
+
'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
|
|
113
|
+
'metadata': value['metadata'],
|
|
114
|
+
'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
|
|
115
|
+
'shippingAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['shippingAddress']),
|
|
116
|
+
'stripePaymentIntentId': value['stripePaymentIntentId'],
|
|
117
|
+
'stripeStatus': value['stripeStatus'],
|
|
118
|
+
'stripeTaxCalculationId': value['stripeTaxCalculationId'],
|
|
119
|
+
'stripeTaxTransactionId': value['stripeTaxTransactionId'],
|
|
120
|
+
'stateHistory': (value['stateHistory'].map(StateHistory_1.StateHistoryToJSON)),
|
|
121
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
122
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaymentTriggerConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentTriggerConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentTriggerConfig
|
|
22
|
+
*/
|
|
23
|
+
triggerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaymentTriggerConfig
|
|
28
|
+
*/
|
|
29
|
+
displayName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PaymentTriggerConfig
|
|
34
|
+
*/
|
|
35
|
+
targetServiceId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PaymentTriggerConfig
|
|
40
|
+
*/
|
|
41
|
+
targetPath: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Set<string>}
|
|
45
|
+
* @memberof PaymentTriggerConfig
|
|
46
|
+
*/
|
|
47
|
+
events: Set<PaymentTriggerConfigEventsType>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof PaymentTriggerConfig
|
|
52
|
+
*/
|
|
53
|
+
enabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof PaymentTriggerConfig
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const PaymentTriggerConfigEventsType: {
|
|
65
|
+
readonly PAYMENT_COMPLETED: "PAYMENT_COMPLETED";
|
|
66
|
+
readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
|
|
67
|
+
};
|
|
68
|
+
export type PaymentTriggerConfigEventsType = typeof PaymentTriggerConfigEventsType[keyof typeof PaymentTriggerConfigEventsType];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the PaymentTriggerConfig interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfPaymentTriggerConfig(value: object): value is PaymentTriggerConfig;
|
|
73
|
+
export declare function PaymentTriggerConfigFromJSON(json: any): PaymentTriggerConfig;
|
|
74
|
+
export declare function PaymentTriggerConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentTriggerConfig;
|
|
75
|
+
export declare function PaymentTriggerConfigToJSON(json: any): PaymentTriggerConfig;
|
|
76
|
+
export declare function PaymentTriggerConfigToJSONTyped(value?: PaymentTriggerConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaymentTriggerConfigEventsType = void 0;
|
|
17
|
+
exports.instanceOfPaymentTriggerConfig = instanceOfPaymentTriggerConfig;
|
|
18
|
+
exports.PaymentTriggerConfigFromJSON = PaymentTriggerConfigFromJSON;
|
|
19
|
+
exports.PaymentTriggerConfigFromJSONTyped = PaymentTriggerConfigFromJSONTyped;
|
|
20
|
+
exports.PaymentTriggerConfigToJSON = PaymentTriggerConfigToJSON;
|
|
21
|
+
exports.PaymentTriggerConfigToJSONTyped = PaymentTriggerConfigToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PaymentTriggerConfigEventsType = {
|
|
26
|
+
PAYMENT_COMPLETED: 'PAYMENT_COMPLETED',
|
|
27
|
+
PAYMENT_REFUNDED: 'PAYMENT_REFUNDED'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PaymentTriggerConfig interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfPaymentTriggerConfig(value) {
|
|
33
|
+
if (!('triggerId' in value) || value['triggerId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('targetServiceId' in value) || value['targetServiceId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('targetPath' in value) || value['targetPath'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('events' in value) || value['events'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function PaymentTriggerConfigFromJSON(json) {
|
|
48
|
+
return PaymentTriggerConfigFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function PaymentTriggerConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'triggerId': json['triggerId'],
|
|
56
|
+
'displayName': json['displayName'],
|
|
57
|
+
'targetServiceId': json['targetServiceId'],
|
|
58
|
+
'targetPath': json['targetPath'],
|
|
59
|
+
'events': new Set(json['events']),
|
|
60
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
61
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function PaymentTriggerConfigToJSON(json) {
|
|
65
|
+
return PaymentTriggerConfigToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function PaymentTriggerConfigToJSONTyped(value, ignoreDiscriminator) {
|
|
68
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'triggerId': value['triggerId'],
|
|
74
|
+
'displayName': value['displayName'],
|
|
75
|
+
'targetServiceId': value['targetServiceId'],
|
|
76
|
+
'targetPath': value['targetPath'],
|
|
77
|
+
'events': Array.from(value['events']),
|
|
78
|
+
'enabled': value['enabled'],
|
|
79
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { NotificationTemplatesConfig } from './NotificationTemplatesConfig';
|
|
12
13
|
import type { WebAppObject } from './WebAppObject';
|
|
13
14
|
import type { ServiceObject } from './ServiceObject';
|
|
15
|
+
import type { PaymentTriggerConfig } from './PaymentTriggerConfig';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
* @export
|
|
@@ -95,12 +97,30 @@ export interface ProjectObject {
|
|
|
95
97
|
* @memberof ProjectObject
|
|
96
98
|
*/
|
|
97
99
|
emailLoginEnabled?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {boolean}
|
|
103
|
+
* @memberof ProjectObject
|
|
104
|
+
*/
|
|
105
|
+
googleLoginEnabled?: boolean;
|
|
98
106
|
/**
|
|
99
107
|
*
|
|
100
108
|
* @type {boolean}
|
|
101
109
|
* @memberof ProjectObject
|
|
102
110
|
*/
|
|
103
111
|
sandboxMode?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {NotificationTemplatesConfig}
|
|
115
|
+
* @memberof ProjectObject
|
|
116
|
+
*/
|
|
117
|
+
notificationTemplatesConfig?: NotificationTemplatesConfig;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {Array<PaymentTriggerConfig>}
|
|
121
|
+
* @memberof ProjectObject
|
|
122
|
+
*/
|
|
123
|
+
paymentTriggers?: Array<PaymentTriggerConfig>;
|
|
104
124
|
/**
|
|
105
125
|
*
|
|
106
126
|
* @type {boolean}
|
|
@@ -18,8 +18,10 @@ exports.ProjectObjectFromJSON = ProjectObjectFromJSON;
|
|
|
18
18
|
exports.ProjectObjectFromJSONTyped = ProjectObjectFromJSONTyped;
|
|
19
19
|
exports.ProjectObjectToJSON = ProjectObjectToJSON;
|
|
20
20
|
exports.ProjectObjectToJSONTyped = ProjectObjectToJSONTyped;
|
|
21
|
+
var NotificationTemplatesConfig_1 = require("./NotificationTemplatesConfig");
|
|
21
22
|
var WebAppObject_1 = require("./WebAppObject");
|
|
22
23
|
var ServiceObject_1 = require("./ServiceObject");
|
|
24
|
+
var PaymentTriggerConfig_1 = require("./PaymentTriggerConfig");
|
|
23
25
|
/**
|
|
24
26
|
* Check if a given object implements the ProjectObject interface.
|
|
25
27
|
*/
|
|
@@ -59,7 +61,10 @@ function ProjectObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'googleOAuthClientId': json['googleOAuthClientId'] == null ? undefined : json['googleOAuthClientId'],
|
|
60
62
|
'phoneLoginEnabled': json['phoneLoginEnabled'] == null ? undefined : json['phoneLoginEnabled'],
|
|
61
63
|
'emailLoginEnabled': json['emailLoginEnabled'] == null ? undefined : json['emailLoginEnabled'],
|
|
64
|
+
'googleLoginEnabled': json['googleLoginEnabled'] == null ? undefined : json['googleLoginEnabled'],
|
|
62
65
|
'sandboxMode': json['sandboxMode'] == null ? undefined : json['sandboxMode'],
|
|
66
|
+
'notificationTemplatesConfig': json['notificationTemplatesConfig'] == null ? undefined : (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigFromJSON)(json['notificationTemplatesConfig']),
|
|
67
|
+
'paymentTriggers': json['paymentTriggers'] == null ? undefined : (json['paymentTriggers'].map(PaymentTriggerConfig_1.PaymentTriggerConfigFromJSON)),
|
|
63
68
|
'hasRecaptchaSecretKey': json['hasRecaptchaSecretKey'] == null ? undefined : json['hasRecaptchaSecretKey'],
|
|
64
69
|
};
|
|
65
70
|
}
|
|
@@ -85,7 +90,10 @@ function ProjectObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
90
|
'googleOAuthClientId': value['googleOAuthClientId'],
|
|
86
91
|
'phoneLoginEnabled': value['phoneLoginEnabled'],
|
|
87
92
|
'emailLoginEnabled': value['emailLoginEnabled'],
|
|
93
|
+
'googleLoginEnabled': value['googleLoginEnabled'],
|
|
88
94
|
'sandboxMode': value['sandboxMode'],
|
|
95
|
+
'notificationTemplatesConfig': (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigToJSON)(value['notificationTemplatesConfig']),
|
|
96
|
+
'paymentTriggers': value['paymentTriggers'] == null ? undefined : (value['paymentTriggers'].map(PaymentTriggerConfig_1.PaymentTriggerConfigToJSON)),
|
|
89
97
|
'hasRecaptchaSecretKey': value['hasRecaptchaSecretKey'],
|
|
90
98
|
};
|
|
91
99
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StateHistory
|
|
16
|
+
*/
|
|
17
|
+
export interface StateHistory {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof StateHistory
|
|
22
|
+
*/
|
|
23
|
+
timestamp: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StateHistory
|
|
28
|
+
*/
|
|
29
|
+
state: StateHistoryStateType;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StateHistory
|
|
34
|
+
*/
|
|
35
|
+
message?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const StateHistoryStateType: {
|
|
41
|
+
readonly DRAFT: "DRAFT";
|
|
42
|
+
readonly PROCESSING: "PROCESSING";
|
|
43
|
+
readonly COMPLETED: "COMPLETED";
|
|
44
|
+
readonly CANCELLED: "CANCELLED";
|
|
45
|
+
readonly FAILED: "FAILED";
|
|
46
|
+
readonly REFUNDED: "REFUNDED";
|
|
47
|
+
};
|
|
48
|
+
export type StateHistoryStateType = typeof StateHistoryStateType[keyof typeof StateHistoryStateType];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the StateHistory interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfStateHistory(value: object): value is StateHistory;
|
|
53
|
+
export declare function StateHistoryFromJSON(json: any): StateHistory;
|
|
54
|
+
export declare function StateHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateHistory;
|
|
55
|
+
export declare function StateHistoryToJSON(json: any): StateHistory;
|
|
56
|
+
export declare function StateHistoryToJSONTyped(value?: StateHistory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.StateHistoryStateType = void 0;
|
|
17
|
+
exports.instanceOfStateHistory = instanceOfStateHistory;
|
|
18
|
+
exports.StateHistoryFromJSON = StateHistoryFromJSON;
|
|
19
|
+
exports.StateHistoryFromJSONTyped = StateHistoryFromJSONTyped;
|
|
20
|
+
exports.StateHistoryToJSON = StateHistoryToJSON;
|
|
21
|
+
exports.StateHistoryToJSONTyped = StateHistoryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StateHistoryStateType = {
|
|
26
|
+
DRAFT: 'DRAFT',
|
|
27
|
+
PROCESSING: 'PROCESSING',
|
|
28
|
+
COMPLETED: 'COMPLETED',
|
|
29
|
+
CANCELLED: 'CANCELLED',
|
|
30
|
+
FAILED: 'FAILED',
|
|
31
|
+
REFUNDED: 'REFUNDED'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the StateHistory interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfStateHistory(value) {
|
|
37
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function StateHistoryFromJSON(json) {
|
|
44
|
+
return StateHistoryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StateHistoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
52
|
+
'state': json['state'],
|
|
53
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function StateHistoryToJSON(json) {
|
|
57
|
+
return StateHistoryToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function StateHistoryToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'timestamp': value['timestamp'].toISOString(),
|
|
66
|
+
'state': value['state'],
|
|
67
|
+
'message': value['message'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateNotificationTemplatesRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateNotificationTemplatesRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
22
|
+
*/
|
|
23
|
+
emailVerificationSubject?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
28
|
+
*/
|
|
29
|
+
emailVerificationHtmlBody?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
34
|
+
*/
|
|
35
|
+
smsVerificationBody?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
40
|
+
*/
|
|
41
|
+
welcomeOnGoogleEnabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
46
|
+
*/
|
|
47
|
+
welcomeOnEmailEnabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
52
|
+
*/
|
|
53
|
+
welcomeOnSmsEnabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
58
|
+
*/
|
|
59
|
+
welcomeEmailSubject?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
64
|
+
*/
|
|
65
|
+
welcomeEmailHtmlBody?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
70
|
+
*/
|
|
71
|
+
welcomeSmsBody?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the UpdateNotificationTemplatesRequest interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfUpdateNotificationTemplatesRequest(value: object): value is UpdateNotificationTemplatesRequest;
|
|
77
|
+
export declare function UpdateNotificationTemplatesRequestFromJSON(json: any): UpdateNotificationTemplatesRequest;
|
|
78
|
+
export declare function UpdateNotificationTemplatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNotificationTemplatesRequest;
|
|
79
|
+
export declare function UpdateNotificationTemplatesRequestToJSON(json: any): UpdateNotificationTemplatesRequest;
|
|
80
|
+
export declare function UpdateNotificationTemplatesRequestToJSONTyped(value?: UpdateNotificationTemplatesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateNotificationTemplatesRequest = instanceOfUpdateNotificationTemplatesRequest;
|
|
17
|
+
exports.UpdateNotificationTemplatesRequestFromJSON = UpdateNotificationTemplatesRequestFromJSON;
|
|
18
|
+
exports.UpdateNotificationTemplatesRequestFromJSONTyped = UpdateNotificationTemplatesRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateNotificationTemplatesRequestToJSON = UpdateNotificationTemplatesRequestToJSON;
|
|
20
|
+
exports.UpdateNotificationTemplatesRequestToJSONTyped = UpdateNotificationTemplatesRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateNotificationTemplatesRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateNotificationTemplatesRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateNotificationTemplatesRequestFromJSON(json) {
|
|
28
|
+
return UpdateNotificationTemplatesRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateNotificationTemplatesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'emailVerificationSubject': json['emailVerificationSubject'] == null ? undefined : json['emailVerificationSubject'],
|
|
36
|
+
'emailVerificationHtmlBody': json['emailVerificationHtmlBody'] == null ? undefined : json['emailVerificationHtmlBody'],
|
|
37
|
+
'smsVerificationBody': json['smsVerificationBody'] == null ? undefined : json['smsVerificationBody'],
|
|
38
|
+
'welcomeOnGoogleEnabled': json['welcomeOnGoogleEnabled'] == null ? undefined : json['welcomeOnGoogleEnabled'],
|
|
39
|
+
'welcomeOnEmailEnabled': json['welcomeOnEmailEnabled'] == null ? undefined : json['welcomeOnEmailEnabled'],
|
|
40
|
+
'welcomeOnSmsEnabled': json['welcomeOnSmsEnabled'] == null ? undefined : json['welcomeOnSmsEnabled'],
|
|
41
|
+
'welcomeEmailSubject': json['welcomeEmailSubject'] == null ? undefined : json['welcomeEmailSubject'],
|
|
42
|
+
'welcomeEmailHtmlBody': json['welcomeEmailHtmlBody'] == null ? undefined : json['welcomeEmailHtmlBody'],
|
|
43
|
+
'welcomeSmsBody': json['welcomeSmsBody'] == null ? undefined : json['welcomeSmsBody'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UpdateNotificationTemplatesRequestToJSON(json) {
|
|
47
|
+
return UpdateNotificationTemplatesRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UpdateNotificationTemplatesRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'emailVerificationSubject': value['emailVerificationSubject'],
|
|
56
|
+
'emailVerificationHtmlBody': value['emailVerificationHtmlBody'],
|
|
57
|
+
'smsVerificationBody': value['smsVerificationBody'],
|
|
58
|
+
'welcomeOnGoogleEnabled': value['welcomeOnGoogleEnabled'],
|
|
59
|
+
'welcomeOnEmailEnabled': value['welcomeOnEmailEnabled'],
|
|
60
|
+
'welcomeOnSmsEnabled': value['welcomeOnSmsEnabled'],
|
|
61
|
+
'welcomeEmailSubject': value['welcomeEmailSubject'],
|
|
62
|
+
'welcomeEmailHtmlBody': value['welcomeEmailHtmlBody'],
|
|
63
|
+
'welcomeSmsBody': value['welcomeSmsBody'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -39,6 +39,12 @@ export interface UpdateProjectRequest {
|
|
|
39
39
|
* @memberof UpdateProjectRequest
|
|
40
40
|
*/
|
|
41
41
|
emailLoginEnabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof UpdateProjectRequest
|
|
46
|
+
*/
|
|
47
|
+
googleLoginEnabled?: boolean;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the UpdateProjectRequest interface.
|
|
@@ -36,6 +36,7 @@ function UpdateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'recaptchaSecretKey': json['recaptchaSecretKey'] == null ? undefined : json['recaptchaSecretKey'],
|
|
37
37
|
'phoneLoginEnabled': json['phoneLoginEnabled'] == null ? undefined : json['phoneLoginEnabled'],
|
|
38
38
|
'emailLoginEnabled': json['emailLoginEnabled'] == null ? undefined : json['emailLoginEnabled'],
|
|
39
|
+
'googleLoginEnabled': json['googleLoginEnabled'] == null ? undefined : json['googleLoginEnabled'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
function UpdateProjectRequestToJSON(json) {
|
|
@@ -51,5 +52,6 @@ function UpdateProjectRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
'recaptchaSecretKey': value['recaptchaSecretKey'],
|
|
52
53
|
'phoneLoginEnabled': value['phoneLoginEnabled'],
|
|
53
54
|
'emailLoginEnabled': value['emailLoginEnabled'],
|
|
55
|
+
'googleLoginEnabled': value['googleLoginEnabled'],
|
|
54
56
|
};
|
|
55
57
|
}
|