@forteplatforms/sdk 1.0.125 → 1.0.131
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 +44 -1
- package/dist/generated/apis/ProjectsServerApi.js +202 -1
- 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 +11 -0
- package/dist/generated/models/ForteApiException.js +12 -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/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 +162 -0
- package/dist/generated/models/PaymentObject.js +123 -0
- package/dist/generated/models/ProjectObject.d.ts +13 -0
- package/dist/generated/models/ProjectObject.js +5 -0
- package/dist/generated/models/StateHistory.d.ts +55 -0
- package/dist/generated/models/StateHistory.js +68 -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/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 +11 -0
- package/dist/generated/models/index.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfPaymentLineItem = instanceOfPaymentLineItem;
|
|
17
|
+
exports.PaymentLineItemFromJSON = PaymentLineItemFromJSON;
|
|
18
|
+
exports.PaymentLineItemFromJSONTyped = PaymentLineItemFromJSONTyped;
|
|
19
|
+
exports.PaymentLineItemToJSON = PaymentLineItemToJSON;
|
|
20
|
+
exports.PaymentLineItemToJSONTyped = PaymentLineItemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PaymentLineItem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPaymentLineItem(value) {
|
|
25
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('unitAmountCents' in value) || value['unitAmountCents'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaymentLineItemFromJSON(json) {
|
|
34
|
+
return PaymentLineItemFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaymentLineItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'description': json['description'],
|
|
42
|
+
'unitAmountCents': json['unitAmountCents'],
|
|
43
|
+
'quantity': json['quantity'],
|
|
44
|
+
'taxCode': json['taxCode'] == null ? undefined : json['taxCode'],
|
|
45
|
+
'taxAmountCents': json['taxAmountCents'] == null ? undefined : json['taxAmountCents'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function PaymentLineItemToJSON(json) {
|
|
49
|
+
return PaymentLineItemToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function PaymentLineItemToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'description': value['description'],
|
|
58
|
+
'unitAmountCents': value['unitAmountCents'],
|
|
59
|
+
'quantity': value['quantity'],
|
|
60
|
+
'taxCode': value['taxCode'],
|
|
61
|
+
'taxAmountCents': value['taxAmountCents'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
import type { PaymentAddress } from './PaymentAddress';
|
|
13
|
+
import type { PaymentLineItem } from './PaymentLineItem';
|
|
14
|
+
import type { StateHistory } from './StateHistory';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PaymentObject
|
|
19
|
+
*/
|
|
20
|
+
export interface PaymentObject {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof PaymentObject
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof PaymentObject
|
|
31
|
+
*/
|
|
32
|
+
projectId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PaymentObject
|
|
37
|
+
*/
|
|
38
|
+
userId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof PaymentObject
|
|
43
|
+
*/
|
|
44
|
+
state: PaymentObjectStateType;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof PaymentObject
|
|
49
|
+
*/
|
|
50
|
+
subtotalCents: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof PaymentObject
|
|
55
|
+
*/
|
|
56
|
+
taxCents?: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof PaymentObject
|
|
61
|
+
*/
|
|
62
|
+
amountCents: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof PaymentObject
|
|
67
|
+
*/
|
|
68
|
+
currency: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof PaymentObject
|
|
73
|
+
*/
|
|
74
|
+
description?: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<PaymentLineItem>}
|
|
78
|
+
* @memberof PaymentObject
|
|
79
|
+
*/
|
|
80
|
+
lineItems: Array<PaymentLineItem>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {{ [key: string]: string; }}
|
|
84
|
+
* @memberof PaymentObject
|
|
85
|
+
*/
|
|
86
|
+
metadata: {
|
|
87
|
+
[key: string]: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {PaymentAddress}
|
|
92
|
+
* @memberof PaymentObject
|
|
93
|
+
*/
|
|
94
|
+
customerAddress?: PaymentAddress;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {PaymentAddress}
|
|
98
|
+
* @memberof PaymentObject
|
|
99
|
+
*/
|
|
100
|
+
shippingAddress?: PaymentAddress;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof PaymentObject
|
|
105
|
+
*/
|
|
106
|
+
stripePaymentIntentId: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof PaymentObject
|
|
111
|
+
*/
|
|
112
|
+
stripeStatus?: string;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof PaymentObject
|
|
117
|
+
*/
|
|
118
|
+
stripeTaxCalculationId?: string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof PaymentObject
|
|
123
|
+
*/
|
|
124
|
+
stripeTaxTransactionId?: string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Array<StateHistory>}
|
|
128
|
+
* @memberof PaymentObject
|
|
129
|
+
*/
|
|
130
|
+
stateHistory: Array<StateHistory>;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {Date}
|
|
134
|
+
* @memberof PaymentObject
|
|
135
|
+
*/
|
|
136
|
+
createdAt: Date;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {Date}
|
|
140
|
+
* @memberof PaymentObject
|
|
141
|
+
*/
|
|
142
|
+
updatedAt?: Date;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export declare const PaymentObjectStateType: {
|
|
148
|
+
readonly DRAFT: "DRAFT";
|
|
149
|
+
readonly PROCESSING: "PROCESSING";
|
|
150
|
+
readonly COMPLETED: "COMPLETED";
|
|
151
|
+
readonly CANCELLED: "CANCELLED";
|
|
152
|
+
readonly FAILED: "FAILED";
|
|
153
|
+
};
|
|
154
|
+
export type PaymentObjectStateType = typeof PaymentObjectStateType[keyof typeof PaymentObjectStateType];
|
|
155
|
+
/**
|
|
156
|
+
* Check if a given object implements the PaymentObject interface.
|
|
157
|
+
*/
|
|
158
|
+
export declare function instanceOfPaymentObject(value: object): value is PaymentObject;
|
|
159
|
+
export declare function PaymentObjectFromJSON(json: any): PaymentObject;
|
|
160
|
+
export declare function PaymentObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentObject;
|
|
161
|
+
export declare function PaymentObjectToJSON(json: any): PaymentObject;
|
|
162
|
+
export declare function PaymentObjectToJSONTyped(value?: PaymentObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the PaymentObject interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfPaymentObject(value) {
|
|
39
|
+
if (!('projectId' in value) || value['projectId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('subtotalCents' in value) || value['subtotalCents'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('amountCents' in value) || value['amountCents'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('stripePaymentIntentId' in value) || value['stripePaymentIntentId'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('stateHistory' in value) || value['stateHistory'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
function PaymentObjectFromJSON(json) {
|
|
64
|
+
return PaymentObjectFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function PaymentObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
72
|
+
'projectId': json['projectId'],
|
|
73
|
+
'userId': json['userId'],
|
|
74
|
+
'state': json['state'],
|
|
75
|
+
'subtotalCents': json['subtotalCents'],
|
|
76
|
+
'taxCents': json['taxCents'] == null ? undefined : json['taxCents'],
|
|
77
|
+
'amountCents': json['amountCents'],
|
|
78
|
+
'currency': json['currency'],
|
|
79
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
80
|
+
'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
|
|
81
|
+
'metadata': json['metadata'],
|
|
82
|
+
'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
|
|
83
|
+
'shippingAddress': json['shippingAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['shippingAddress']),
|
|
84
|
+
'stripePaymentIntentId': json['stripePaymentIntentId'],
|
|
85
|
+
'stripeStatus': json['stripeStatus'] == null ? undefined : json['stripeStatus'],
|
|
86
|
+
'stripeTaxCalculationId': json['stripeTaxCalculationId'] == null ? undefined : json['stripeTaxCalculationId'],
|
|
87
|
+
'stripeTaxTransactionId': json['stripeTaxTransactionId'] == null ? undefined : json['stripeTaxTransactionId'],
|
|
88
|
+
'stateHistory': (json['stateHistory'].map(StateHistory_1.StateHistoryFromJSON)),
|
|
89
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
90
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function PaymentObjectToJSON(json) {
|
|
94
|
+
return PaymentObjectToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
function PaymentObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
97
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'projectId': value['projectId'],
|
|
104
|
+
'userId': value['userId'],
|
|
105
|
+
'state': value['state'],
|
|
106
|
+
'subtotalCents': value['subtotalCents'],
|
|
107
|
+
'taxCents': value['taxCents'],
|
|
108
|
+
'amountCents': value['amountCents'],
|
|
109
|
+
'currency': value['currency'],
|
|
110
|
+
'description': value['description'],
|
|
111
|
+
'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
|
|
112
|
+
'metadata': value['metadata'],
|
|
113
|
+
'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
|
|
114
|
+
'shippingAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['shippingAddress']),
|
|
115
|
+
'stripePaymentIntentId': value['stripePaymentIntentId'],
|
|
116
|
+
'stripeStatus': value['stripeStatus'],
|
|
117
|
+
'stripeTaxCalculationId': value['stripeTaxCalculationId'],
|
|
118
|
+
'stripeTaxTransactionId': value['stripeTaxTransactionId'],
|
|
119
|
+
'stateHistory': (value['stateHistory'].map(StateHistory_1.StateHistoryToJSON)),
|
|
120
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
121
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
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';
|
|
14
15
|
/**
|
|
@@ -95,12 +96,24 @@ export interface ProjectObject {
|
|
|
95
96
|
* @memberof ProjectObject
|
|
96
97
|
*/
|
|
97
98
|
emailLoginEnabled?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof ProjectObject
|
|
103
|
+
*/
|
|
104
|
+
googleLoginEnabled?: boolean;
|
|
98
105
|
/**
|
|
99
106
|
*
|
|
100
107
|
* @type {boolean}
|
|
101
108
|
* @memberof ProjectObject
|
|
102
109
|
*/
|
|
103
110
|
sandboxMode?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {NotificationTemplatesConfig}
|
|
114
|
+
* @memberof ProjectObject
|
|
115
|
+
*/
|
|
116
|
+
notificationTemplatesConfig?: NotificationTemplatesConfig;
|
|
104
117
|
/**
|
|
105
118
|
*
|
|
106
119
|
* @type {boolean}
|
|
@@ -18,6 +18,7 @@ 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");
|
|
23
24
|
/**
|
|
@@ -59,7 +60,9 @@ function ProjectObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'googleOAuthClientId': json['googleOAuthClientId'] == null ? undefined : json['googleOAuthClientId'],
|
|
60
61
|
'phoneLoginEnabled': json['phoneLoginEnabled'] == null ? undefined : json['phoneLoginEnabled'],
|
|
61
62
|
'emailLoginEnabled': json['emailLoginEnabled'] == null ? undefined : json['emailLoginEnabled'],
|
|
63
|
+
'googleLoginEnabled': json['googleLoginEnabled'] == null ? undefined : json['googleLoginEnabled'],
|
|
62
64
|
'sandboxMode': json['sandboxMode'] == null ? undefined : json['sandboxMode'],
|
|
65
|
+
'notificationTemplatesConfig': json['notificationTemplatesConfig'] == null ? undefined : (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigFromJSON)(json['notificationTemplatesConfig']),
|
|
63
66
|
'hasRecaptchaSecretKey': json['hasRecaptchaSecretKey'] == null ? undefined : json['hasRecaptchaSecretKey'],
|
|
64
67
|
};
|
|
65
68
|
}
|
|
@@ -85,7 +88,9 @@ function ProjectObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
88
|
'googleOAuthClientId': value['googleOAuthClientId'],
|
|
86
89
|
'phoneLoginEnabled': value['phoneLoginEnabled'],
|
|
87
90
|
'emailLoginEnabled': value['emailLoginEnabled'],
|
|
91
|
+
'googleLoginEnabled': value['googleLoginEnabled'],
|
|
88
92
|
'sandboxMode': value['sandboxMode'],
|
|
93
|
+
'notificationTemplatesConfig': (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigToJSON)(value['notificationTemplatesConfig']),
|
|
89
94
|
'hasRecaptchaSecretKey': value['hasRecaptchaSecretKey'],
|
|
90
95
|
};
|
|
91
96
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
};
|
|
47
|
+
export type StateHistoryStateType = typeof StateHistoryStateType[keyof typeof StateHistoryStateType];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the StateHistory interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfStateHistory(value: object): value is StateHistory;
|
|
52
|
+
export declare function StateHistoryFromJSON(json: any): StateHistory;
|
|
53
|
+
export declare function StateHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateHistory;
|
|
54
|
+
export declare function StateHistoryToJSON(json: any): StateHistory;
|
|
55
|
+
export declare function StateHistoryToJSONTyped(value?: StateHistory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the StateHistory interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfStateHistory(value) {
|
|
36
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function StateHistoryFromJSON(json) {
|
|
43
|
+
return StateHistoryFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StateHistoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
51
|
+
'state': json['state'],
|
|
52
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function StateHistoryToJSON(json) {
|
|
56
|
+
return StateHistoryToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function StateHistoryToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'timestamp': value['timestamp'].toISOString(),
|
|
65
|
+
'state': value['state'],
|
|
66
|
+
'message': value['message'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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
|
+
}
|