@managespace/sdk 0.0.119 → 0.0.121
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/.turbo/turbo-build.log +2 -0
- package/dist/extensibility/functions/project/billing.d.ts +9 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +24 -12
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +75 -37
- package/dist/generated/models/create-note.d.ts +6 -0
- package/dist/generated/models/create-note.d.ts.map +1 -1
- package/dist/generated/models/create-note.js +2 -0
- package/dist/generated/models/create-subscription-plan.d.ts +4 -228
- package/dist/generated/models/create-subscription-plan.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-plan.js +4 -80
- package/dist/generated/models/create-subscription.d.ts +4 -4
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +4 -12
- package/dist/generated/models/index.d.ts +2 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -0
- package/dist/generated/models/note.d.ts +6 -0
- package/dist/generated/models/note.d.ts.map +1 -1
- package/dist/generated/models/note.js +4 -0
- package/dist/generated/models/subscription-plan.d.ts +74 -105
- package/dist/generated/models/subscription-plan.d.ts.map +1 -1
- package/dist/generated/models/subscription-plan.js +127 -70
- package/dist/generated/models/update-note.d.ts +1 -19
- package/dist/generated/models/update-note.d.ts.map +1 -1
- package/dist/generated/models/update-note.js +3 -7
- package/dist/generated/models/update-subscription-charge.d.ts +293 -0
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
- package/dist/generated/models/update-subscription-charge.js +151 -0
- package/dist/generated/models/update-subscription.d.ts +70 -0
- package/dist/generated/models/update-subscription.d.ts.map +1 -0
- package/dist/generated/models/update-subscription.js +68 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +10 -1
- package/src/generated/.openapi-generator/FILES +2 -0
- package/src/generated/apis/default-api.ts +126 -65
- package/src/generated/models/create-note.ts +8 -0
- package/src/generated/models/create-subscription.ts +8 -12
- package/src/generated/models/index.ts +2 -0
- package/src/generated/models/note.ts +9 -0
- package/src/generated/models/update-note.ts +3 -26
- package/src/generated/models/{create-subscription-plan.ts → update-subscription-charge.ts} +85 -83
- package/src/generated/models/update-subscription.ts +124 -0
- package/package.deploy.json +0 -33
- package/src/generated/models/subscription-plan.ts +0 -438
|
@@ -22,7 +22,6 @@ import type {
|
|
|
22
22
|
AssetFeature,
|
|
23
23
|
BillingRun,
|
|
24
24
|
Calendar,
|
|
25
|
-
CancelSubscription,
|
|
26
25
|
Charge,
|
|
27
26
|
ChartOfAccounts,
|
|
28
27
|
Communication,
|
|
@@ -143,6 +142,7 @@ import type {
|
|
|
143
142
|
UpdateNote,
|
|
144
143
|
UpdateOrg,
|
|
145
144
|
UpdateSmartBarPrompt,
|
|
145
|
+
UpdateSubscription,
|
|
146
146
|
UpdateUserProperties,
|
|
147
147
|
User,
|
|
148
148
|
UserId,
|
|
@@ -168,8 +168,6 @@ import {
|
|
|
168
168
|
BillingRunToJSON,
|
|
169
169
|
CalendarFromJSON,
|
|
170
170
|
CalendarToJSON,
|
|
171
|
-
CancelSubscriptionFromJSON,
|
|
172
|
-
CancelSubscriptionToJSON,
|
|
173
171
|
ChargeFromJSON,
|
|
174
172
|
ChargeToJSON,
|
|
175
173
|
ChartOfAccountsFromJSON,
|
|
@@ -410,6 +408,8 @@ import {
|
|
|
410
408
|
UpdateOrgToJSON,
|
|
411
409
|
UpdateSmartBarPromptFromJSON,
|
|
412
410
|
UpdateSmartBarPromptToJSON,
|
|
411
|
+
UpdateSubscriptionFromJSON,
|
|
412
|
+
UpdateSubscriptionToJSON,
|
|
413
413
|
UpdateUserPropertiesFromJSON,
|
|
414
414
|
UpdateUserPropertiesToJSON,
|
|
415
415
|
UserFromJSON,
|
|
@@ -434,12 +434,6 @@ export interface AdminSignUpRequest {
|
|
|
434
434
|
adminSignUp: AdminSignUp;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
export interface CancelSubscriptionRequest {
|
|
438
|
-
siteId: string;
|
|
439
|
-
subscriptionId: string;
|
|
440
|
-
cancelSubscription: CancelSubscription;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
437
|
export interface CheckStrengthRequest {
|
|
444
438
|
password: Password;
|
|
445
439
|
}
|
|
@@ -593,6 +587,11 @@ export interface DeleteAssetRequest {
|
|
|
593
587
|
assetId: string;
|
|
594
588
|
}
|
|
595
589
|
|
|
590
|
+
export interface DeleteNoteRequest {
|
|
591
|
+
siteId: string;
|
|
592
|
+
noteId: string;
|
|
593
|
+
}
|
|
594
|
+
|
|
596
595
|
export interface DeleteUserFromProviderRequest {
|
|
597
596
|
userId: UserId;
|
|
598
597
|
}
|
|
@@ -772,6 +771,8 @@ export interface GetNotesRequest {
|
|
|
772
771
|
siteId: string;
|
|
773
772
|
offset?: number;
|
|
774
773
|
limit?: number;
|
|
774
|
+
metadataPath?: string;
|
|
775
|
+
metadataValue?: string;
|
|
775
776
|
contactId?: string;
|
|
776
777
|
assetId?: string;
|
|
777
778
|
userId?: string;
|
|
@@ -1119,6 +1120,12 @@ export interface UpdateSmartBarPromptRequest {
|
|
|
1119
1120
|
updateSmartBarPrompt: UpdateSmartBarPrompt;
|
|
1120
1121
|
}
|
|
1121
1122
|
|
|
1123
|
+
export interface UpdateSubscriptionRequest {
|
|
1124
|
+
siteId: string;
|
|
1125
|
+
subscriptionId: string;
|
|
1126
|
+
updateSubscription: UpdateSubscription;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1122
1129
|
export interface UpdateTaskTemplateRequest {
|
|
1123
1130
|
siteId: string;
|
|
1124
1131
|
taskTemplateId: string;
|
|
@@ -1181,62 +1188,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1181
1188
|
return await response.value();
|
|
1182
1189
|
}
|
|
1183
1190
|
|
|
1184
|
-
/**
|
|
1185
|
-
*/
|
|
1186
|
-
async cancelSubscriptionRaw(requestParameters: CancelSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Subscription>> {
|
|
1187
|
-
if (requestParameters['siteId'] == null) {
|
|
1188
|
-
throw new runtime.RequiredError(
|
|
1189
|
-
'siteId',
|
|
1190
|
-
'Required parameter "siteId" was null or undefined when calling cancelSubscription().'
|
|
1191
|
-
);
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
if (requestParameters['subscriptionId'] == null) {
|
|
1195
|
-
throw new runtime.RequiredError(
|
|
1196
|
-
'subscriptionId',
|
|
1197
|
-
'Required parameter "subscriptionId" was null or undefined when calling cancelSubscription().'
|
|
1198
|
-
);
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
if (requestParameters['cancelSubscription'] == null) {
|
|
1202
|
-
throw new runtime.RequiredError(
|
|
1203
|
-
'cancelSubscription',
|
|
1204
|
-
'Required parameter "cancelSubscription" was null or undefined when calling cancelSubscription().'
|
|
1205
|
-
);
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
const queryParameters: any = {};
|
|
1209
|
-
|
|
1210
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1211
|
-
|
|
1212
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1213
|
-
|
|
1214
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1215
|
-
const token = this.configuration.accessToken;
|
|
1216
|
-
const tokenString = await token("bearer", []);
|
|
1217
|
-
|
|
1218
|
-
if (tokenString) {
|
|
1219
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
const response = await this.request({
|
|
1223
|
-
path: `/api/sites/{siteId}/subscriptions/{subscriptionId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1224
|
-
method: 'PUT',
|
|
1225
|
-
headers: headerParameters,
|
|
1226
|
-
query: queryParameters,
|
|
1227
|
-
body: CancelSubscriptionToJSON(requestParameters['cancelSubscription']),
|
|
1228
|
-
}, initOverrides);
|
|
1229
|
-
|
|
1230
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionFromJSON(jsonValue));
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
*/
|
|
1235
|
-
async cancelSubscription(requestParameters: CancelSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Subscription> {
|
|
1236
|
-
const response = await this.cancelSubscriptionRaw(requestParameters, initOverrides);
|
|
1237
|
-
return await response.value();
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
1191
|
/**
|
|
1241
1192
|
*/
|
|
1242
1193
|
async checkStrengthRaw(requestParameters: CheckStrengthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasswordStrengthCheck>> {
|
|
@@ -2776,6 +2727,52 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2776
2727
|
return await response.value();
|
|
2777
2728
|
}
|
|
2778
2729
|
|
|
2730
|
+
/**
|
|
2731
|
+
*/
|
|
2732
|
+
async deleteNoteRaw(requestParameters: DeleteNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Note>> {
|
|
2733
|
+
if (requestParameters['siteId'] == null) {
|
|
2734
|
+
throw new runtime.RequiredError(
|
|
2735
|
+
'siteId',
|
|
2736
|
+
'Required parameter "siteId" was null or undefined when calling deleteNote().'
|
|
2737
|
+
);
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
if (requestParameters['noteId'] == null) {
|
|
2741
|
+
throw new runtime.RequiredError(
|
|
2742
|
+
'noteId',
|
|
2743
|
+
'Required parameter "noteId" was null or undefined when calling deleteNote().'
|
|
2744
|
+
);
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
const queryParameters: any = {};
|
|
2748
|
+
|
|
2749
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2750
|
+
|
|
2751
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2752
|
+
const token = this.configuration.accessToken;
|
|
2753
|
+
const tokenString = await token("bearer", []);
|
|
2754
|
+
|
|
2755
|
+
if (tokenString) {
|
|
2756
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
const response = await this.request({
|
|
2760
|
+
path: `/api/sites/{siteId}/notes/{noteId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"noteId"}}`, encodeURIComponent(String(requestParameters['noteId']))),
|
|
2761
|
+
method: 'DELETE',
|
|
2762
|
+
headers: headerParameters,
|
|
2763
|
+
query: queryParameters,
|
|
2764
|
+
}, initOverrides);
|
|
2765
|
+
|
|
2766
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NoteFromJSON(jsonValue));
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
/**
|
|
2770
|
+
*/
|
|
2771
|
+
async deleteNote(requestParameters: DeleteNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Note> {
|
|
2772
|
+
const response = await this.deleteNoteRaw(requestParameters, initOverrides);
|
|
2773
|
+
return await response.value();
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2779
2776
|
/**
|
|
2780
2777
|
*/
|
|
2781
2778
|
async deleteUserFromProviderRaw(requestParameters: DeleteUserFromProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserId>> {
|
|
@@ -4285,6 +4282,14 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4285
4282
|
queryParameters['limit'] = requestParameters['limit'];
|
|
4286
4283
|
}
|
|
4287
4284
|
|
|
4285
|
+
if (requestParameters['metadataPath'] != null) {
|
|
4286
|
+
queryParameters['metadataPath'] = requestParameters['metadataPath'];
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
if (requestParameters['metadataValue'] != null) {
|
|
4290
|
+
queryParameters['metadataValue'] = requestParameters['metadataValue'];
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4288
4293
|
if (requestParameters['contactId'] != null) {
|
|
4289
4294
|
queryParameters['contactId'] = requestParameters['contactId'];
|
|
4290
4295
|
}
|
|
@@ -7337,6 +7342,62 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
7337
7342
|
return await response.value();
|
|
7338
7343
|
}
|
|
7339
7344
|
|
|
7345
|
+
/**
|
|
7346
|
+
*/
|
|
7347
|
+
async updateSubscriptionRaw(requestParameters: UpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Subscription>> {
|
|
7348
|
+
if (requestParameters['siteId'] == null) {
|
|
7349
|
+
throw new runtime.RequiredError(
|
|
7350
|
+
'siteId',
|
|
7351
|
+
'Required parameter "siteId" was null or undefined when calling updateSubscription().'
|
|
7352
|
+
);
|
|
7353
|
+
}
|
|
7354
|
+
|
|
7355
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
7356
|
+
throw new runtime.RequiredError(
|
|
7357
|
+
'subscriptionId',
|
|
7358
|
+
'Required parameter "subscriptionId" was null or undefined when calling updateSubscription().'
|
|
7359
|
+
);
|
|
7360
|
+
}
|
|
7361
|
+
|
|
7362
|
+
if (requestParameters['updateSubscription'] == null) {
|
|
7363
|
+
throw new runtime.RequiredError(
|
|
7364
|
+
'updateSubscription',
|
|
7365
|
+
'Required parameter "updateSubscription" was null or undefined when calling updateSubscription().'
|
|
7366
|
+
);
|
|
7367
|
+
}
|
|
7368
|
+
|
|
7369
|
+
const queryParameters: any = {};
|
|
7370
|
+
|
|
7371
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
7372
|
+
|
|
7373
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7374
|
+
|
|
7375
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7376
|
+
const token = this.configuration.accessToken;
|
|
7377
|
+
const tokenString = await token("bearer", []);
|
|
7378
|
+
|
|
7379
|
+
if (tokenString) {
|
|
7380
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7381
|
+
}
|
|
7382
|
+
}
|
|
7383
|
+
const response = await this.request({
|
|
7384
|
+
path: `/api/sites/{siteId}/subscriptions/{subscriptionId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
7385
|
+
method: 'PUT',
|
|
7386
|
+
headers: headerParameters,
|
|
7387
|
+
query: queryParameters,
|
|
7388
|
+
body: UpdateSubscriptionToJSON(requestParameters['updateSubscription']),
|
|
7389
|
+
}, initOverrides);
|
|
7390
|
+
|
|
7391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionFromJSON(jsonValue));
|
|
7392
|
+
}
|
|
7393
|
+
|
|
7394
|
+
/**
|
|
7395
|
+
*/
|
|
7396
|
+
async updateSubscription(requestParameters: UpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Subscription> {
|
|
7397
|
+
const response = await this.updateSubscriptionRaw(requestParameters, initOverrides);
|
|
7398
|
+
return await response.value();
|
|
7399
|
+
}
|
|
7400
|
+
|
|
7340
7401
|
/**
|
|
7341
7402
|
*/
|
|
7342
7403
|
async updateTaskTemplateRaw(requestParameters: UpdateTaskTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskTemplate>> {
|
|
@@ -43,6 +43,12 @@ export interface CreateNote {
|
|
|
43
43
|
* @memberof CreateNote
|
|
44
44
|
*/
|
|
45
45
|
userId?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Metadata for the note
|
|
48
|
+
* @type {object}
|
|
49
|
+
* @memberof CreateNote
|
|
50
|
+
*/
|
|
51
|
+
metadata?: object | null;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -67,6 +73,7 @@ export function CreateNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
67
73
|
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
68
74
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
69
75
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
76
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
70
77
|
};
|
|
71
78
|
}
|
|
72
79
|
|
|
@@ -85,6 +92,7 @@ export function CreateNoteToJSONTyped(value?: CreateNote | null, ignoreDiscrimin
|
|
|
85
92
|
'customerId': value['customerId'],
|
|
86
93
|
'assetId': value['assetId'],
|
|
87
94
|
'userId': value['userId'],
|
|
95
|
+
'metadata': value['metadata'],
|
|
88
96
|
};
|
|
89
97
|
}
|
|
90
98
|
|
|
@@ -32,25 +32,25 @@ export interface CreateSubscription {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateSubscription
|
|
34
34
|
*/
|
|
35
|
-
status
|
|
35
|
+
status?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Billing start date for subscription contract
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateSubscription
|
|
40
40
|
*/
|
|
41
|
-
billingStartDate
|
|
41
|
+
billingStartDate?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Service start date for subscription contract
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateSubscription
|
|
46
46
|
*/
|
|
47
|
-
serviceStartDate
|
|
47
|
+
serviceStartDate?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Date subscription contract was signed and activated
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateSubscription
|
|
52
52
|
*/
|
|
53
|
-
contractEffectiveDate
|
|
53
|
+
contractEffectiveDate?: string;
|
|
54
54
|
/**
|
|
55
55
|
* Asset ID
|
|
56
56
|
* @type {string}
|
|
@@ -69,10 +69,6 @@ export interface CreateSubscription {
|
|
|
69
69
|
* Check if a given object implements the CreateSubscription interface.
|
|
70
70
|
*/
|
|
71
71
|
export function instanceOfCreateSubscription(value: object): value is CreateSubscription {
|
|
72
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
73
|
-
if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
|
|
74
|
-
if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
|
|
75
|
-
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
|
|
76
72
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
77
73
|
return true;
|
|
78
74
|
}
|
|
@@ -87,10 +83,10 @@ export function CreateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
87
83
|
}
|
|
88
84
|
return {
|
|
89
85
|
|
|
90
|
-
'status': json['status'],
|
|
91
|
-
'billingStartDate': json['billingStartDate'],
|
|
92
|
-
'serviceStartDate': json['serviceStartDate'],
|
|
93
|
-
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
86
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
87
|
+
'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
|
|
88
|
+
'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
|
|
89
|
+
'contractEffectiveDate': json['contractEffectiveDate'] == null ? undefined : json['contractEffectiveDate'],
|
|
94
90
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
95
91
|
'charges': ((json['charges'] as Array<any>).map(CreateSubscriptionChargeFromJSON)),
|
|
96
92
|
};
|
|
@@ -182,6 +182,8 @@ export * from './update-map-feature';
|
|
|
182
182
|
export * from './update-note';
|
|
183
183
|
export * from './update-org';
|
|
184
184
|
export * from './update-smart-bar-prompt';
|
|
185
|
+
export * from './update-subscription';
|
|
186
|
+
export * from './update-subscription-charge';
|
|
185
187
|
export * from './update-user-properties';
|
|
186
188
|
export * from './user';
|
|
187
189
|
export * from './user-id';
|
|
@@ -163,6 +163,12 @@ export interface Note {
|
|
|
163
163
|
* @memberof Note
|
|
164
164
|
*/
|
|
165
165
|
userId: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Metadata for the note
|
|
168
|
+
* @type {object}
|
|
169
|
+
* @memberof Note
|
|
170
|
+
*/
|
|
171
|
+
metadata: object | null;
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
/**
|
|
@@ -180,6 +186,7 @@ export function instanceOfNote(value: object): value is Note {
|
|
|
180
186
|
if (!('updatedById' in value) || value['updatedById'] === undefined) return false;
|
|
181
187
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
182
188
|
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
189
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
183
190
|
return true;
|
|
184
191
|
}
|
|
185
192
|
|
|
@@ -211,6 +218,7 @@ export function NoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Note
|
|
|
211
218
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
212
219
|
'user': json['user'] == null ? undefined : UserFromJSON(json['user']),
|
|
213
220
|
'userId': json['userId'],
|
|
221
|
+
'metadata': json['metadata'],
|
|
214
222
|
};
|
|
215
223
|
}
|
|
216
224
|
|
|
@@ -243,6 +251,7 @@ export function NoteToJSONTyped(value?: Note | null, ignoreDiscriminator: boolea
|
|
|
243
251
|
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
244
252
|
'user': UserToJSON(value['user']),
|
|
245
253
|
'userId': value['userId'],
|
|
254
|
+
'metadata': value['metadata'],
|
|
246
255
|
};
|
|
247
256
|
}
|
|
248
257
|
|
|
@@ -24,31 +24,14 @@ export interface UpdateNote {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateNote
|
|
26
26
|
*/
|
|
27
|
-
text
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateNote
|
|
32
|
-
*/
|
|
33
|
-
customerId?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UpdateNote
|
|
38
|
-
*/
|
|
39
|
-
assetId?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UpdateNote
|
|
44
|
-
*/
|
|
45
|
-
userId?: string | null;
|
|
27
|
+
text: string;
|
|
46
28
|
}
|
|
47
29
|
|
|
48
30
|
/**
|
|
49
31
|
* Check if a given object implements the UpdateNote interface.
|
|
50
32
|
*/
|
|
51
33
|
export function instanceOfUpdateNote(value: object): value is UpdateNote {
|
|
34
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
52
35
|
return true;
|
|
53
36
|
}
|
|
54
37
|
|
|
@@ -62,10 +45,7 @@ export function UpdateNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
62
45
|
}
|
|
63
46
|
return {
|
|
64
47
|
|
|
65
|
-
'text': json['text']
|
|
66
|
-
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
67
|
-
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
68
|
-
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
48
|
+
'text': json['text'],
|
|
69
49
|
};
|
|
70
50
|
}
|
|
71
51
|
|
|
@@ -81,9 +61,6 @@ export function UpdateNoteToJSONTyped(value?: UpdateNote | null, ignoreDiscrimin
|
|
|
81
61
|
return {
|
|
82
62
|
|
|
83
63
|
'text': value['text'],
|
|
84
|
-
'customerId': value['customerId'],
|
|
85
|
-
'assetId': value['assetId'],
|
|
86
|
-
'userId': value['userId'],
|
|
87
64
|
};
|
|
88
65
|
}
|
|
89
66
|
|