@managespace/sdk 0.0.42 → 0.0.44

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.
Files changed (46) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +6 -11
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/communication.d.ts +6 -4
  4. package/dist/extensibility/functions/project/communication.d.ts.map +1 -1
  5. package/dist/extensibility/functions/project/communication.js +2 -2
  6. package/dist/generated/apis/default-api.d.ts +48 -25
  7. package/dist/generated/apis/default-api.d.ts.map +1 -1
  8. package/dist/generated/apis/default-api.js +147 -67
  9. package/dist/generated/models/chart-of-accounts-response.d.ts +27 -4
  10. package/dist/generated/models/chart-of-accounts-response.d.ts.map +1 -1
  11. package/dist/generated/models/chart-of-accounts-response.js +17 -4
  12. package/dist/generated/models/create-billing-run.d.ts +1 -1
  13. package/dist/generated/models/create-billing-run.d.ts.map +1 -1
  14. package/dist/generated/models/create-billing-run.js +1 -3
  15. package/dist/generated/models/create-chart-of-accounts.d.ts +57 -0
  16. package/dist/generated/models/create-chart-of-accounts.d.ts.map +1 -0
  17. package/dist/generated/models/create-chart-of-accounts.js +65 -0
  18. package/dist/generated/models/get-billing-runs1200-response.d.ts +41 -0
  19. package/dist/generated/models/get-billing-runs1200-response.d.ts.map +1 -0
  20. package/dist/generated/models/get-billing-runs1200-response.js +55 -0
  21. package/dist/generated/models/get-chart-of-accounts200-response.d.ts +3 -3
  22. package/dist/generated/models/get-chart-of-accounts200-response.d.ts.map +1 -1
  23. package/dist/generated/models/get-chart-of-accounts200-response.js +3 -3
  24. package/dist/generated/models/index.d.ts +4 -4
  25. package/dist/generated/models/index.d.ts.map +1 -1
  26. package/dist/generated/models/index.js +4 -4
  27. package/dist/generated/models/send-email.d.ts +63 -0
  28. package/dist/generated/models/send-email.d.ts.map +1 -0
  29. package/dist/generated/models/send-email.js +71 -0
  30. package/dist/generated/models/send-sms.d.ts +57 -0
  31. package/dist/generated/models/send-sms.d.ts.map +1 -0
  32. package/dist/generated/models/send-sms.js +67 -0
  33. package/package.json +1 -1
  34. package/src/extensibility/functions/project/billing.ts +7 -11
  35. package/src/extensibility/functions/project/communication.ts +8 -7
  36. package/src/generated/.openapi-generator/FILES +4 -4
  37. package/src/generated/apis/default-api.ts +231 -110
  38. package/src/generated/models/chart-of-accounts-response.ts +41 -14
  39. package/src/generated/models/create-billing-run.ts +2 -3
  40. package/src/generated/models/create-chart-of-accounts.ts +101 -0
  41. package/src/generated/models/get-billing-runs1200-response.ts +89 -0
  42. package/src/generated/models/get-chart-of-accounts200-response.ts +10 -10
  43. package/src/generated/models/index.ts +4 -4
  44. package/src/generated/models/send-email.ts +111 -0
  45. package/src/generated/models/send-sms.ts +102 -0
  46. package/tsconfig.json +2 -1
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ChartOfAccountResponse } from './chart-of-account-response';
17
- import {
18
- ChartOfAccountResponseFromJSON,
19
- ChartOfAccountResponseFromJSONTyped,
20
- ChartOfAccountResponseToJSON,
21
- ChartOfAccountResponseToJSONTyped,
22
- } from './chart-of-account-response';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -28,18 +20,45 @@ import {
28
20
  */
29
21
  export interface ChartOfAccountsResponse {
30
22
  /**
31
- * Accounts to be inputted to chart of accounts.
32
- * @type {Array<ChartOfAccountResponse>}
23
+ * Code identifying the Account
24
+ * @type {string}
25
+ * @memberof ChartOfAccountsResponse
26
+ */
27
+ code: string;
28
+ /**
29
+ * Main Account type
30
+ * @type {string}
31
+ * @memberof ChartOfAccountsResponse
32
+ */
33
+ accountType: string;
34
+ /**
35
+ * Name of Account
36
+ * @type {string}
37
+ * @memberof ChartOfAccountsResponse
38
+ */
39
+ name: string;
40
+ /**
41
+ * Sub-Account type
42
+ * @type {string}
43
+ * @memberof ChartOfAccountsResponse
44
+ */
45
+ subType?: string;
46
+ /**
47
+ * Code identifying the Parent Account
48
+ * @type {string}
33
49
  * @memberof ChartOfAccountsResponse
34
50
  */
35
- chartOfAccounts: Array<ChartOfAccountResponse>;
51
+ parentAccount: string;
36
52
  }
37
53
 
38
54
  /**
39
55
  * Check if a given object implements the ChartOfAccountsResponse interface.
40
56
  */
41
57
  export function instanceOfChartOfAccountsResponse(value: object): value is ChartOfAccountsResponse {
42
- if (!('chartOfAccounts' in value) || value['chartOfAccounts'] === undefined) return false;
58
+ if (!('code' in value) || value['code'] === undefined) return false;
59
+ if (!('accountType' in value) || value['accountType'] === undefined) return false;
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('parentAccount' in value) || value['parentAccount'] === undefined) return false;
43
62
  return true;
44
63
  }
45
64
 
@@ -53,7 +72,11 @@ export function ChartOfAccountsResponseFromJSONTyped(json: any, ignoreDiscrimina
53
72
  }
54
73
  return {
55
74
 
56
- 'chartOfAccounts': ((json['chartOfAccounts'] as Array<any>).map(ChartOfAccountResponseFromJSON)),
75
+ 'code': json['code'],
76
+ 'accountType': json['accountType'],
77
+ 'name': json['name'],
78
+ 'subType': json['subType'] == null ? undefined : json['subType'],
79
+ 'parentAccount': json['parentAccount'],
57
80
  };
58
81
  }
59
82
 
@@ -68,7 +91,11 @@ export function ChartOfAccountsResponseToJSONTyped(value?: ChartOfAccountsRespon
68
91
 
69
92
  return {
70
93
 
71
- 'chartOfAccounts': ((value['chartOfAccounts'] as Array<any>).map(ChartOfAccountResponseToJSON)),
94
+ 'code': value['code'],
95
+ 'accountType': value['accountType'],
96
+ 'name': value['name'],
97
+ 'subType': value['subType'],
98
+ 'parentAccount': value['parentAccount'],
72
99
  };
73
100
  }
74
101
 
@@ -50,7 +50,7 @@ export interface CreateBillingRun {
50
50
  * @type {BillingRunFilterOptionResponse}
51
51
  * @memberof CreateBillingRun
52
52
  */
53
- filterOptions: BillingRunFilterOptionResponse;
53
+ filterOptions?: BillingRunFilterOptionResponse;
54
54
  /**
55
55
  * Invoice statues automatically converted from Draft to Posted
56
56
  * @type {boolean}
@@ -96,7 +96,6 @@ export function instanceOfCreateBillingRun(value: object): value is CreateBillin
96
96
  if (!('targetDate' in value) || value['targetDate'] === undefined) return false;
97
97
  if (!('invoiceDate' in value) || value['invoiceDate'] === undefined) return false;
98
98
  if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
99
- if (!('filterOptions' in value) || value['filterOptions'] === undefined) return false;
100
99
  if (!('autoPost' in value) || value['autoPost'] === undefined) return false;
101
100
  if (!('sendAfterPost' in value) || value['sendAfterPost'] === undefined) return false;
102
101
  if (!('skipZeroLines' in value) || value['skipZeroLines'] === undefined) return false;
@@ -119,7 +118,7 @@ export function CreateBillingRunFromJSONTyped(json: any, ignoreDiscriminator: bo
119
118
  'targetDate': json['targetDate'],
120
119
  'invoiceDate': json['invoiceDate'],
121
120
  'chargeType': json['chargeType'],
122
- 'filterOptions': BillingRunFilterOptionResponseFromJSON(json['filterOptions']),
121
+ 'filterOptions': json['filterOptions'] == null ? undefined : BillingRunFilterOptionResponseFromJSON(json['filterOptions']),
123
122
  'autoPost': json['autoPost'],
124
123
  'sendAfterPost': json['sendAfterPost'],
125
124
  'skipZeroLines': json['skipZeroLines'],
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateChartOfAccounts
20
+ */
21
+ export interface CreateChartOfAccounts {
22
+ /**
23
+ * Code identifying the Account
24
+ * @type {string}
25
+ * @memberof CreateChartOfAccounts
26
+ */
27
+ code: string;
28
+ /**
29
+ * Main Account type
30
+ * @type {string}
31
+ * @memberof CreateChartOfAccounts
32
+ */
33
+ accountType: string;
34
+ /**
35
+ * Name of Account
36
+ * @type {string}
37
+ * @memberof CreateChartOfAccounts
38
+ */
39
+ name: string;
40
+ /**
41
+ * Sub-Account type
42
+ * @type {string}
43
+ * @memberof CreateChartOfAccounts
44
+ */
45
+ subType?: string;
46
+ /**
47
+ * Code identifying the Parent Account
48
+ * @type {string}
49
+ * @memberof CreateChartOfAccounts
50
+ */
51
+ parentAccount: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the CreateChartOfAccounts interface.
56
+ */
57
+ export function instanceOfCreateChartOfAccounts(value: object): value is CreateChartOfAccounts {
58
+ if (!('code' in value) || value['code'] === undefined) return false;
59
+ if (!('accountType' in value) || value['accountType'] === undefined) return false;
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('parentAccount' in value) || value['parentAccount'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function CreateChartOfAccountsFromJSON(json: any): CreateChartOfAccounts {
66
+ return CreateChartOfAccountsFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function CreateChartOfAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChartOfAccounts {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'code': json['code'],
76
+ 'accountType': json['accountType'],
77
+ 'name': json['name'],
78
+ 'subType': json['subType'] == null ? undefined : json['subType'],
79
+ 'parentAccount': json['parentAccount'],
80
+ };
81
+ }
82
+
83
+ export function CreateChartOfAccountsToJSON(json: any): CreateChartOfAccounts {
84
+ return CreateChartOfAccountsToJSONTyped(json, false);
85
+ }
86
+
87
+ export function CreateChartOfAccountsToJSONTyped(value?: CreateChartOfAccounts | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'code': value['code'],
95
+ 'accountType': value['accountType'],
96
+ 'name': value['name'],
97
+ 'subType': value['subType'],
98
+ 'parentAccount': value['parentAccount'],
99
+ };
100
+ }
101
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+ import { mapValues } from '../runtime';
16
+ import type { StatementResponse } from './statement-response';
17
+ import {
18
+ StatementResponseFromJSON,
19
+ StatementResponseFromJSONTyped,
20
+ StatementResponseToJSON,
21
+ StatementResponseToJSONTyped,
22
+ } from './statement-response';
23
+ import type { PageMeta } from './page-meta';
24
+ import {
25
+ PageMetaFromJSON,
26
+ PageMetaFromJSONTyped,
27
+ PageMetaToJSON,
28
+ PageMetaToJSONTyped,
29
+ } from './page-meta';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetBillingRuns1200Response
35
+ */
36
+ export interface GetBillingRuns1200Response {
37
+ /**
38
+ * The pagination metadata
39
+ * @type {PageMeta}
40
+ * @memberof GetBillingRuns1200Response
41
+ */
42
+ pageMeta: PageMeta;
43
+ /**
44
+ *
45
+ * @type {Array<StatementResponse>}
46
+ * @memberof GetBillingRuns1200Response
47
+ */
48
+ results?: Array<StatementResponse>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetBillingRuns1200Response interface.
53
+ */
54
+ export function instanceOfGetBillingRuns1200Response(value: object): value is GetBillingRuns1200Response {
55
+ if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function GetBillingRuns1200ResponseFromJSON(json: any): GetBillingRuns1200Response {
60
+ return GetBillingRuns1200ResponseFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function GetBillingRuns1200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBillingRuns1200Response {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'pageMeta': PageMetaFromJSON(json['pageMeta']),
70
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(StatementResponseFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function GetBillingRuns1200ResponseToJSON(json: any): GetBillingRuns1200Response {
75
+ return GetBillingRuns1200ResponseToJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetBillingRuns1200ResponseToJSONTyped(value?: GetBillingRuns1200Response | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'pageMeta': PageMetaToJSON(value['pageMeta']),
86
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(StatementResponseToJSON)),
87
+ };
88
+ }
89
+
@@ -20,13 +20,13 @@ import {
20
20
  PageMetaToJSON,
21
21
  PageMetaToJSONTyped,
22
22
  } from './page-meta';
23
- import type { ChartOfAccountResponse } from './chart-of-account-response';
23
+ import type { ChartOfAccountsResponse } from './chart-of-accounts-response';
24
24
  import {
25
- ChartOfAccountResponseFromJSON,
26
- ChartOfAccountResponseFromJSONTyped,
27
- ChartOfAccountResponseToJSON,
28
- ChartOfAccountResponseToJSONTyped,
29
- } from './chart-of-account-response';
25
+ ChartOfAccountsResponseFromJSON,
26
+ ChartOfAccountsResponseFromJSONTyped,
27
+ ChartOfAccountsResponseToJSON,
28
+ ChartOfAccountsResponseToJSONTyped,
29
+ } from './chart-of-accounts-response';
30
30
 
31
31
  /**
32
32
  *
@@ -42,10 +42,10 @@ export interface GetChartOfAccounts200Response {
42
42
  pageMeta: PageMeta;
43
43
  /**
44
44
  *
45
- * @type {Array<ChartOfAccountResponse>}
45
+ * @type {Array<ChartOfAccountsResponse>}
46
46
  * @memberof GetChartOfAccounts200Response
47
47
  */
48
- results?: Array<ChartOfAccountResponse>;
48
+ results?: Array<ChartOfAccountsResponse>;
49
49
  }
50
50
 
51
51
  /**
@@ -67,7 +67,7 @@ export function GetChartOfAccounts200ResponseFromJSONTyped(json: any, ignoreDisc
67
67
  return {
68
68
 
69
69
  'pageMeta': PageMetaFromJSON(json['pageMeta']),
70
- 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ChartOfAccountResponseFromJSON)),
70
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ChartOfAccountsResponseFromJSON)),
71
71
  };
72
72
  }
73
73
 
@@ -83,7 +83,7 @@ export function GetChartOfAccounts200ResponseToJSONTyped(value?: GetChartOfAccou
83
83
  return {
84
84
 
85
85
  'pageMeta': PageMetaToJSON(value['pageMeta']),
86
- 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ChartOfAccountResponseToJSON)),
86
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ChartOfAccountsResponseToJSON)),
87
87
  };
88
88
  }
89
89
 
@@ -11,7 +11,6 @@ export * from './billing-run-filter-option-response';
11
11
  export * from './billing-run-response';
12
12
  export * from './calendar-response';
13
13
  export * from './charge-response';
14
- export * from './chart-of-account-response';
15
14
  export * from './chart-of-accounts-response';
16
15
  export * from './checklist-recurrence-frequency';
17
16
  export * from './checklist-response';
@@ -28,6 +27,7 @@ export * from './create-asset-feature-custom';
28
27
  export * from './create-assets';
29
28
  export * from './create-billing-run';
30
29
  export * from './create-calendar';
30
+ export * from './create-chart-of-accounts';
31
31
  export * from './create-checklist';
32
32
  export * from './create-communication';
33
33
  export * from './create-configuration-setting';
@@ -51,8 +51,6 @@ export * from './create-subscription';
51
51
  export * from './create-task';
52
52
  export * from './create-task-template';
53
53
  export * from './create-template';
54
- export * from './custom-chart-of-account';
55
- export * from './custom-chart-of-accounts';
56
54
  export * from './custom-create-contact';
57
55
  export * from './custom-create-customer';
58
56
  export * from './custom-create-plan';
@@ -73,6 +71,7 @@ export * from './get-asset-categories200-response';
73
71
  export * from './get-asset-classes200-response';
74
72
  export * from './get-asset-features200-response';
75
73
  export * from './get-assets200-response';
74
+ export * from './get-billing-runs1200-response';
76
75
  export * from './get-billing-runs200-response';
77
76
  export * from './get-calendar-events-query';
78
77
  export * from './get-calendars200-response';
@@ -93,7 +92,6 @@ export * from './get-plugins200-response';
93
92
  export * from './get-products200-response';
94
93
  export * from './get-revenue-rules200-response';
95
94
  export * from './get-sites200-response';
96
- export * from './get-statements200-response';
97
95
  export * from './get-task-templates200-response';
98
96
  export * from './get-tasks200-response';
99
97
  export * from './get-users200-response';
@@ -140,6 +138,8 @@ export * from './roles';
140
138
  export * from './roles1';
141
139
  export * from './roles2';
142
140
  export * from './roles3';
141
+ export * from './send-email';
142
+ export * from './send-sms';
143
143
  export * from './site-response';
144
144
  export * from './site-type-response';
145
145
  export * from './site-type-response1';
@@ -0,0 +1,111 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SendEmail
20
+ */
21
+ export interface SendEmail {
22
+ /**
23
+ * The ID of the contact receiving the email.
24
+ * @type {string}
25
+ * @memberof SendEmail
26
+ */
27
+ contactId: string;
28
+ /**
29
+ * The ID of the customer sending the email.
30
+ * @type {string}
31
+ * @memberof SendEmail
32
+ */
33
+ customerId: string;
34
+ /**
35
+ * The email address of the contact receiving the email.
36
+ * @type {string}
37
+ * @memberof SendEmail
38
+ */
39
+ receiverEmail: string;
40
+ /**
41
+ * The email address of the customer sending the email.
42
+ * @type {string}
43
+ * @memberof SendEmail
44
+ */
45
+ senderEmail: string;
46
+ /**
47
+ * The subject of the email being sent.
48
+ * @type {string}
49
+ * @memberof SendEmail
50
+ */
51
+ subject: string;
52
+ /**
53
+ * The body of the email being sent.
54
+ * @type {string}
55
+ * @memberof SendEmail
56
+ */
57
+ text: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the SendEmail interface.
62
+ */
63
+ export function instanceOfSendEmail(value: object): value is SendEmail {
64
+ if (!('contactId' in value) || value['contactId'] === undefined) return false;
65
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
66
+ if (!('receiverEmail' in value) || value['receiverEmail'] === undefined) return false;
67
+ if (!('senderEmail' in value) || value['senderEmail'] === undefined) return false;
68
+ if (!('subject' in value) || value['subject'] === undefined) return false;
69
+ if (!('text' in value) || value['text'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function SendEmailFromJSON(json: any): SendEmail {
74
+ return SendEmailFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function SendEmailFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendEmail {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'contactId': json['contactId'],
84
+ 'customerId': json['customerId'],
85
+ 'receiverEmail': json['receiverEmail'],
86
+ 'senderEmail': json['senderEmail'],
87
+ 'subject': json['subject'],
88
+ 'text': json['text'],
89
+ };
90
+ }
91
+
92
+ export function SendEmailToJSON(json: any): SendEmail {
93
+ return SendEmailToJSONTyped(json, false);
94
+ }
95
+
96
+ export function SendEmailToJSONTyped(value?: SendEmail | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'contactId': value['contactId'],
104
+ 'customerId': value['customerId'],
105
+ 'receiverEmail': value['receiverEmail'],
106
+ 'senderEmail': value['senderEmail'],
107
+ 'subject': value['subject'],
108
+ 'text': value['text'],
109
+ };
110
+ }
111
+
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SendSms
20
+ */
21
+ export interface SendSms {
22
+ /**
23
+ * The ID of the contact receiving the SMS.
24
+ * @type {string}
25
+ * @memberof SendSms
26
+ */
27
+ contactId: string;
28
+ /**
29
+ * The ID of the customer sending the SMS.
30
+ * @type {string}
31
+ * @memberof SendSms
32
+ */
33
+ customerId: string;
34
+ /**
35
+ * The phone number of the user sending the SMS.
36
+ * @type {string}
37
+ * @memberof SendSms
38
+ */
39
+ senderNumber: string;
40
+ /**
41
+ * The phone number of the contact recieving the SMS.
42
+ * @type {string}
43
+ * @memberof SendSms
44
+ */
45
+ receiverNumber: string;
46
+ /**
47
+ * The body of the SMS being sent.
48
+ * @type {string}
49
+ * @memberof SendSms
50
+ */
51
+ body: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the SendSms interface.
56
+ */
57
+ export function instanceOfSendSms(value: object): value is SendSms {
58
+ if (!('contactId' in value) || value['contactId'] === undefined) return false;
59
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
60
+ if (!('senderNumber' in value) || value['senderNumber'] === undefined) return false;
61
+ if (!('receiverNumber' in value) || value['receiverNumber'] === undefined) return false;
62
+ if (!('body' in value) || value['body'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function SendSmsFromJSON(json: any): SendSms {
67
+ return SendSmsFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function SendSmsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendSms {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'contactId': json['contactId'],
77
+ 'customerId': json['customerId'],
78
+ 'senderNumber': json['senderNumber'],
79
+ 'receiverNumber': json['receiverNumber'],
80
+ 'body': json['body'],
81
+ };
82
+ }
83
+
84
+ export function SendSmsToJSON(json: any): SendSms {
85
+ return SendSmsToJSONTyped(json, false);
86
+ }
87
+
88
+ export function SendSmsToJSONTyped(value?: SendSms | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'contactId': value['contactId'],
96
+ 'customerId': value['customerId'],
97
+ 'senderNumber': value['senderNumber'],
98
+ 'receiverNumber': value['receiverNumber'],
99
+ 'body': value['body'],
100
+ };
101
+ }
102
+
package/tsconfig.json CHANGED
@@ -3,7 +3,8 @@
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
5
  "rootDir": "src",
6
- "resolveJsonModule": true
6
+ "resolveJsonModule": true,
7
+ "experimentalDecorators": true
7
8
  },
8
9
  "include": ["src"],
9
10
  "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]