ch-chat-api-typescript-axios 1.4.7 → 1.4.8

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.
@@ -21,12 +21,11 @@ export declare const WhatsAppsApiAxiosParamCreator: (configuration?: Configurati
21
21
  /**
22
22
  *
23
23
  * @summary Send WhatsApp Marketing template Message
24
- * @param {string} tenantId
25
24
  * @param {ChatSendMarketingTemplateMessageCommand} [chatSendMarketingTemplateMessageCommand]
26
25
  * @param {*} [options] Override http request option.
27
26
  * @throws {RequiredError}
28
27
  */
29
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost: (tenantId: string, chatSendMarketingTemplateMessageCommand?: ChatSendMarketingTemplateMessageCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost: (chatSendMarketingTemplateMessageCommand?: ChatSendMarketingTemplateMessageCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
29
  };
31
30
  /**
32
31
  * WhatsAppsApi - functional programming interface
@@ -36,12 +35,11 @@ export declare const WhatsAppsApiFp: (configuration?: Configuration) => {
36
35
  /**
37
36
  *
38
37
  * @summary Send WhatsApp Marketing template Message
39
- * @param {string} tenantId
40
38
  * @param {ChatSendMarketingTemplateMessageCommand} [chatSendMarketingTemplateMessageCommand]
41
39
  * @param {*} [options] Override http request option.
42
40
  * @throws {RequiredError}
43
41
  */
44
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(tenantId: string, chatSendMarketingTemplateMessageCommand?: ChatSendMarketingTemplateMessageCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
42
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(chatSendMarketingTemplateMessageCommand?: ChatSendMarketingTemplateMessageCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
45
43
  };
46
44
  /**
47
45
  * WhatsAppsApi - factory interface
@@ -55,7 +53,7 @@ export declare const WhatsAppsApiFactory: (configuration?: Configuration, basePa
55
53
  * @param {*} [options] Override http request option.
56
54
  * @throws {RequiredError}
57
55
  */
58
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters: WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
56
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters?: WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
59
57
  };
60
58
  /**
61
59
  * Request parameters for apiV1ChatWhatsappsMarketingTemplateMessagesSendPost operation in WhatsAppsApi.
@@ -63,12 +61,6 @@ export declare const WhatsAppsApiFactory: (configuration?: Configuration, basePa
63
61
  * @interface WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest
64
62
  */
65
63
  export interface WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest {
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPost
70
- */
71
- readonly tenantId: string;
72
64
  /**
73
65
  *
74
66
  * @type {ChatSendMarketingTemplateMessageCommand}
@@ -91,5 +83,5 @@ export declare class WhatsAppsApi extends BaseAPI {
91
83
  * @throws {RequiredError}
92
84
  * @memberof WhatsAppsApi
93
85
  */
94
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters: WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
86
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters?: WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
95
87
  }
@@ -41,16 +41,12 @@ const WhatsAppsApiAxiosParamCreator = function (configuration) {
41
41
  /**
42
42
  *
43
43
  * @summary Send WhatsApp Marketing template Message
44
- * @param {string} tenantId
45
44
  * @param {ChatSendMarketingTemplateMessageCommand} [chatSendMarketingTemplateMessageCommand]
46
45
  * @param {*} [options] Override http request option.
47
46
  * @throws {RequiredError}
48
47
  */
49
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost: (tenantId_1, chatSendMarketingTemplateMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, chatSendMarketingTemplateMessageCommand_1, ...args_1], void 0, function* (tenantId, chatSendMarketingTemplateMessageCommand, options = {}) {
50
- // verify required parameter 'tenantId' is not null or undefined
51
- (0, common_1.assertParamExists)('apiV1ChatWhatsappsMarketingTemplateMessagesSendPost', 'tenantId', tenantId);
52
- const localVarPath = `/api/v1/chat/whatsapps/marketing/template/messages/send`
53
- .replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
48
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost: (chatSendMarketingTemplateMessageCommand_1, ...args_1) => __awaiter(this, [chatSendMarketingTemplateMessageCommand_1, ...args_1], void 0, function* (chatSendMarketingTemplateMessageCommand, options = {}) {
49
+ const localVarPath = `/api/v1/chat/whatsapps/marketing/template/messages/send`;
54
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
51
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
56
52
  let baseOptions;
@@ -86,15 +82,14 @@ const WhatsAppsApiFp = function (configuration) {
86
82
  /**
87
83
  *
88
84
  * @summary Send WhatsApp Marketing template Message
89
- * @param {string} tenantId
90
85
  * @param {ChatSendMarketingTemplateMessageCommand} [chatSendMarketingTemplateMessageCommand]
91
86
  * @param {*} [options] Override http request option.
92
87
  * @throws {RequiredError}
93
88
  */
94
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(tenantId, chatSendMarketingTemplateMessageCommand, options) {
89
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(chatSendMarketingTemplateMessageCommand, options) {
95
90
  return __awaiter(this, void 0, void 0, function* () {
96
91
  var _a, _b, _c;
97
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(tenantId, chatSendMarketingTemplateMessageCommand, options);
92
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(chatSendMarketingTemplateMessageCommand, options);
98
93
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
99
94
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WhatsAppsApi.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
100
95
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -117,8 +112,8 @@ const WhatsAppsApiFactory = function (configuration, basePath, axios) {
117
112
  * @param {*} [options] Override http request option.
118
113
  * @throws {RequiredError}
119
114
  */
120
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters, options) {
121
- return localVarFp.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters.tenantId, requestParameters.chatSendMarketingTemplateMessageCommand, options).then((request) => request(axios, basePath));
115
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters = {}, options) {
116
+ return localVarFp.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters.chatSendMarketingTemplateMessageCommand, options).then((request) => request(axios, basePath));
122
117
  },
123
118
  };
124
119
  };
@@ -138,8 +133,8 @@ class WhatsAppsApi extends base_1.BaseAPI {
138
133
  * @throws {RequiredError}
139
134
  * @memberof WhatsAppsApi
140
135
  */
141
- apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters, options) {
142
- return (0, exports.WhatsAppsApiFp)(this.configuration).apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters.tenantId, requestParameters.chatSendMarketingTemplateMessageCommand, options).then((request) => request(this.axios, this.basePath));
136
+ apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters = {}, options) {
137
+ return (0, exports.WhatsAppsApiFp)(this.configuration).apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters.chatSendMarketingTemplateMessageCommand, options).then((request) => request(this.axios, this.basePath));
143
138
  }
144
139
  }
145
140
  exports.WhatsAppsApi = WhatsAppsApi;
@@ -1 +1 @@
1
- {"version":3,"file":"whats-apps-api.js","sourceRoot":"","sources":["../../src/api/whats-apps-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;AAKH,kDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAKtH;;;GAGG;AACI,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;;;WAOG;QACH,mDAAmD,EAAE,mEAAuK,EAAE,wGAAlK,QAAgB,EAAE,uCAAiF,EAAE,UAAiC,EAAE;YAChM,gEAAgE;YAChE,IAAA,0BAAiB,EAAC,qDAAqD,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;YAC9F,MAAM,YAAY,GAAG,yDAAyD;iBACzE,OAAO,CAAC,IAAI,UAAU,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtE,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,C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AAiB,EAAE,KAAqB;IAChH,MAAM,UAAU,GAAG,IAAA,sBAAc,EAAC,aAAa,CAAC,CAAA;IAChD,OAAO;QACH;;;;;;WAMG;QACH,mDAAmD,CAAC,oBAA4F,EAAE,EAAE,OAA+B;YAC/K,OAAO,UAAU,CAAC,mDAAmD,CAAC,iBAAiB,CAAC,uCAAuC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC1L,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,mBAAmB,uBAc9B;AAgBF;;;;;GAKG;AACH,MAAa,YAAa,SAAQ,cAAO;IACrC;;;;;;;OAOG;IACI,mDAAmD,CAAC,oBAA4F,EAAE,EAAE,OAA+B;QACtL,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mDAAmD,CAAC,iBAAiB,CAAC,uCAAuC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5N,CAAC;CACJ;AAZD,oCAYC"}
@@ -9,8 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { RecipientUsers } from './recipient-users';
13
- import type { TemplateComponent } from './template-component';
12
+ import type { DynamicTemplateMessage } from './dynamic-template-message';
14
13
  import type { WhatsAppLanguageCode } from './whats-app-language-code';
15
14
  /**
16
15
  *
@@ -18,6 +17,12 @@ import type { WhatsAppLanguageCode } from './whats-app-language-code';
18
17
  * @interface ChatSendMarketingTemplateMessageCommand
19
18
  */
20
19
  export interface ChatSendMarketingTemplateMessageCommand {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ChatSendMarketingTemplateMessageCommand
24
+ */
25
+ 'tenantId'?: string;
21
26
  /**
22
27
  *
23
28
  * @type {string}
@@ -50,14 +55,8 @@ export interface ChatSendMarketingTemplateMessageCommand {
50
55
  'language'?: WhatsAppLanguageCode;
51
56
  /**
52
57
  *
53
- * @type {Array<TemplateComponent>}
54
- * @memberof ChatSendMarketingTemplateMessageCommand
55
- */
56
- 'components'?: Array<TemplateComponent> | null;
57
- /**
58
- *
59
- * @type {Array<RecipientUsers>}
58
+ * @type {Array<DynamicTemplateMessage>}
60
59
  * @memberof ChatSendMarketingTemplateMessageCommand
61
60
  */
62
- 'recipients'?: Array<RecipientUsers> | null;
61
+ 'dynamicTemplateMessage'?: Array<DynamicTemplateMessage> | null;
63
62
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TemplateComponent } from './template-component';
13
+ import type { TemplateMessageRecipient } from './template-message-recipient';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface DynamicTemplateMessage
18
+ */
19
+ export interface DynamicTemplateMessage {
20
+ /**
21
+ *
22
+ * @type {TemplateMessageRecipient}
23
+ * @memberof DynamicTemplateMessage
24
+ */
25
+ 'recipient'?: TemplateMessageRecipient;
26
+ /**
27
+ *
28
+ * @type {Array<TemplateComponent>}
29
+ * @memberof DynamicTemplateMessage
30
+ */
31
+ 'components'?: Array<TemplateComponent> | null;
32
+ }
@@ -13,4 +13,4 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- //# sourceMappingURL=recipient-users.js.map
16
+ //# sourceMappingURL=dynamic-template-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-template-message.js","sourceRoot":"","sources":["../../src/models/dynamic-template-message.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -13,6 +13,7 @@ export * from './chat-session-status';
13
13
  export * from './chat-sessions-model';
14
14
  export * from './create-chat-session-command';
15
15
  export * from './create-intake-form-command';
16
+ export * from './dynamic-template-message';
16
17
  export * from './intake-form';
17
18
  export * from './intake-form-item';
18
19
  export * from './intake-forms-model';
@@ -30,7 +31,6 @@ export * from './patch-intake-form-command';
30
31
  export * from './platform-metadata';
31
32
  export * from './platform-types';
32
33
  export * from './put-chat-session-command';
33
- export * from './recipient-users';
34
34
  export * from './request-create-intake-form-item-model';
35
35
  export * from './request-patch-inake-form-item-model';
36
36
  export * from './sort-by';
@@ -44,6 +44,7 @@ export * from './template-component-inner-parameter-type';
44
44
  export * from './template-component-inner-parameter-video';
45
45
  export * from './template-component-type';
46
46
  export * from './template-message-model';
47
+ export * from './template-message-recipient';
47
48
  export * from './template-sub-component-type';
48
49
  export * from './transfer-manager-command';
49
50
  export * from './whats-app-language-code';
@@ -29,6 +29,7 @@ __exportStar(require("./chat-session-status"), exports);
29
29
  __exportStar(require("./chat-sessions-model"), exports);
30
30
  __exportStar(require("./create-chat-session-command"), exports);
31
31
  __exportStar(require("./create-intake-form-command"), exports);
32
+ __exportStar(require("./dynamic-template-message"), exports);
32
33
  __exportStar(require("./intake-form"), exports);
33
34
  __exportStar(require("./intake-form-item"), exports);
34
35
  __exportStar(require("./intake-forms-model"), exports);
@@ -46,7 +47,6 @@ __exportStar(require("./patch-intake-form-command"), exports);
46
47
  __exportStar(require("./platform-metadata"), exports);
47
48
  __exportStar(require("./platform-types"), exports);
48
49
  __exportStar(require("./put-chat-session-command"), exports);
49
- __exportStar(require("./recipient-users"), exports);
50
50
  __exportStar(require("./request-create-intake-form-item-model"), exports);
51
51
  __exportStar(require("./request-patch-inake-form-item-model"), exports);
52
52
  __exportStar(require("./sort-by"), exports);
@@ -60,6 +60,7 @@ __exportStar(require("./template-component-inner-parameter-type"), exports);
60
60
  __exportStar(require("./template-component-inner-parameter-video"), exports);
61
61
  __exportStar(require("./template-component-type"), exports);
62
62
  __exportStar(require("./template-message-model"), exports);
63
+ __exportStar(require("./template-message-recipient"), exports);
63
64
  __exportStar(require("./template-sub-component-type"), exports);
64
65
  __exportStar(require("./transfer-manager-command"), exports);
65
66
  __exportStar(require("./whats-app-language-code"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,4EAA0D;AAC1D,mFAAiE;AACjE,iDAA+B;AAC/B,iDAA+B;AAC/B,wDAAsC;AACtC,qDAAmC;AACnC,mEAAiD;AACjD,iFAA+D;AAC/D,uEAAqD;AACrD,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,gDAA8B;AAC9B,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,8DAA4C;AAC5C,sDAAoC;AACpC,mDAAiC;AACjC,6DAA2C;AAC3C,oDAAkC;AAClC,0EAAwD;AACxD,wEAAsD;AACtD,4CAA0B;AAC1B,uDAAqC;AACrC,uEAAqD;AACrD,+EAA6D;AAC7D,iFAA+D;AAC/D,gFAA8D;AAC9D,6EAA2D;AAC3D,4EAA0D;AAC1D,6EAA2D;AAC3D,4DAA0C;AAC1C,2DAAyC;AACzC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,4EAA0D;AAC1D,mFAAiE;AACjE,iDAA+B;AAC/B,iDAA+B;AAC/B,wDAAsC;AACtC,qDAAmC;AACnC,mEAAiD;AACjD,iFAA+D;AAC/D,uEAAqD;AACrD,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,6DAA2C;AAC3C,gDAA8B;AAC9B,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,8DAA4C;AAC5C,sDAAoC;AACpC,mDAAiC;AACjC,6DAA2C;AAC3C,0EAAwD;AACxD,wEAAsD;AACtD,4CAA0B;AAC1B,uDAAqC;AACrC,uEAAqD;AACrD,+EAA6D;AAC7D,iFAA+D;AAC/D,gFAA8D;AAC9D,6EAA2D;AAC3D,4EAA0D;AAC1D,6EAA2D;AAC3D,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,uDAAqC"}
@@ -12,19 +12,19 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface RecipientUsers
15
+ * @interface TemplateMessageRecipient
16
16
  */
17
- export interface RecipientUsers {
17
+ export interface TemplateMessageRecipient {
18
18
  /**
19
19
  *
20
20
  * @type {string}
21
- * @memberof RecipientUsers
21
+ * @memberof TemplateMessageRecipient
22
22
  */
23
23
  'userName'?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
- * @memberof RecipientUsers
27
+ * @memberof TemplateMessageRecipient
28
28
  */
29
29
  'phoneNumber'?: string | null;
30
30
  }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
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
+ //# sourceMappingURL=template-message-recipient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-message-recipient.js","sourceRoot":"","sources":["../../src/models/template-message-recipient.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ch-chat-api-typescript-axios",
3
3
  "description": "An OpenAPI generator tool for the CH Chat API, designed to simplify API client generation and streamline integration workflows.",
4
- "version": "1.4.7",
4
+ "version": "1.4.8",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"recipient-users.js","sourceRoot":"","sources":["../../src/models/recipient-users.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}