ch-admin-api-client-typescript 2.5.2 → 2.5.3

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/src/api.ts CHANGED
@@ -4231,6 +4231,31 @@ export interface CreateTagCommand {
4231
4231
  */
4232
4232
  'tagId'?: string | null;
4233
4233
  }
4234
+ /**
4235
+ *
4236
+ * @export
4237
+ * @interface CreateTemplateVersionCommand
4238
+ */
4239
+ export interface CreateTemplateVersionCommand {
4240
+ /**
4241
+ *
4242
+ * @type {string}
4243
+ * @memberof CreateTemplateVersionCommand
4244
+ */
4245
+ 'name'?: string | null;
4246
+ /**
4247
+ *
4248
+ * @type {string}
4249
+ * @memberof CreateTemplateVersionCommand
4250
+ */
4251
+ 'subject'?: string | null;
4252
+ /**
4253
+ *
4254
+ * @type {string}
4255
+ * @memberof CreateTemplateVersionCommand
4256
+ */
4257
+ 'htmlContent'?: string | null;
4258
+ }
4234
4259
  /**
4235
4260
  *
4236
4261
  * @export
@@ -6951,6 +6976,12 @@ export interface HospitalSimpleItemModel {
6951
6976
  * @memberof HospitalSimpleItemModel
6952
6977
  */
6953
6978
  'name'?: string | null;
6979
+ /**
6980
+ *
6981
+ * @type {boolean}
6982
+ * @memberof HospitalSimpleItemModel
6983
+ */
6984
+ 'confirmed'?: boolean;
6954
6985
  }
6955
6986
  /**
6956
6987
  *
@@ -8702,6 +8733,19 @@ export enum RejectReason {
8702
8733
  OtherReason = 'OtherReason'
8703
8734
  }
8704
8735
 
8736
+ /**
8737
+ *
8738
+ * @export
8739
+ * @interface SendTemplateVersionCommand
8740
+ */
8741
+ export interface SendTemplateVersionCommand {
8742
+ /**
8743
+ *
8744
+ * @type {string}
8745
+ * @memberof SendTemplateVersionCommand
8746
+ */
8747
+ 'testEmail'?: string | null;
8748
+ }
8705
8749
  /**
8706
8750
  *
8707
8751
  * @export
@@ -9323,6 +9367,135 @@ export interface TagsModel {
9323
9367
  */
9324
9368
  'metaData'?: PagedListMetaData;
9325
9369
  }
9370
+ /**
9371
+ *
9372
+ * @export
9373
+ * @interface TemplateVersionItemModel
9374
+ */
9375
+ export interface TemplateVersionItemModel {
9376
+ /**
9377
+ *
9378
+ * @type {string}
9379
+ * @memberof TemplateVersionItemModel
9380
+ */
9381
+ 'id'?: string | null;
9382
+ /**
9383
+ *
9384
+ * @type {string}
9385
+ * @memberof TemplateVersionItemModel
9386
+ */
9387
+ 'templateId'?: string | null;
9388
+ /**
9389
+ *
9390
+ * @type {boolean}
9391
+ * @memberof TemplateVersionItemModel
9392
+ */
9393
+ 'isActive'?: boolean;
9394
+ /**
9395
+ *
9396
+ * @type {string}
9397
+ * @memberof TemplateVersionItemModel
9398
+ */
9399
+ 'name'?: string | null;
9400
+ /**
9401
+ *
9402
+ * @type {string}
9403
+ * @memberof TemplateVersionItemModel
9404
+ */
9405
+ 'htmlContent'?: string | null;
9406
+ /**
9407
+ *
9408
+ * @type {string}
9409
+ * @memberof TemplateVersionItemModel
9410
+ */
9411
+ 'textContent'?: string | null;
9412
+ /**
9413
+ *
9414
+ * @type {string}
9415
+ * @memberof TemplateVersionItemModel
9416
+ */
9417
+ 'subject'?: string | null;
9418
+ /**
9419
+ *
9420
+ * @type {Date}
9421
+ * @memberof TemplateVersionItemModel
9422
+ */
9423
+ 'updatedOn'?: Date;
9424
+ }
9425
+ /**
9426
+ *
9427
+ * @export
9428
+ * @interface TemplateVersionModel
9429
+ */
9430
+ export interface TemplateVersionModel {
9431
+ /**
9432
+ *
9433
+ * @type {string}
9434
+ * @memberof TemplateVersionModel
9435
+ */
9436
+ 'id'?: string | null;
9437
+ /**
9438
+ *
9439
+ * @type {string}
9440
+ * @memberof TemplateVersionModel
9441
+ */
9442
+ 'templateId'?: string | null;
9443
+ /**
9444
+ *
9445
+ * @type {boolean}
9446
+ * @memberof TemplateVersionModel
9447
+ */
9448
+ 'isActive'?: boolean;
9449
+ /**
9450
+ *
9451
+ * @type {string}
9452
+ * @memberof TemplateVersionModel
9453
+ */
9454
+ 'name'?: string | null;
9455
+ /**
9456
+ *
9457
+ * @type {string}
9458
+ * @memberof TemplateVersionModel
9459
+ */
9460
+ 'htmlContent'?: string | null;
9461
+ /**
9462
+ *
9463
+ * @type {string}
9464
+ * @memberof TemplateVersionModel
9465
+ */
9466
+ 'textContent'?: string | null;
9467
+ /**
9468
+ *
9469
+ * @type {string}
9470
+ * @memberof TemplateVersionModel
9471
+ */
9472
+ 'subject'?: string | null;
9473
+ /**
9474
+ *
9475
+ * @type {Date}
9476
+ * @memberof TemplateVersionModel
9477
+ */
9478
+ 'updatedOn'?: Date;
9479
+ }
9480
+ /**
9481
+ *
9482
+ * @export
9483
+ * @interface TemplateVersionsModel
9484
+ */
9485
+ export interface TemplateVersionsModel {
9486
+ /**
9487
+ *
9488
+ * @type {Array<TemplateVersionItemModel>}
9489
+ * @memberof TemplateVersionsModel
9490
+ */
9491
+ 'items'?: Array<TemplateVersionItemModel> | null;
9492
+ /**
9493
+ *
9494
+ * @type {PagedListMetaData}
9495
+ * @memberof TemplateVersionsModel
9496
+ */
9497
+ 'metaData'?: PagedListMetaData;
9498
+ }
9326
9499
  /**
9327
9500
  *
9328
9501
  * @export
@@ -10905,6 +11078,31 @@ export interface UpdateSpecialtyTypeCommand {
10905
11078
  */
10906
11079
  'languageCode'?: string | null;
10907
11080
  }
11081
+ /**
11082
+ *
11083
+ * @export
11084
+ * @interface UpdateTemplateVersionCommand
11085
+ */
11086
+ export interface UpdateTemplateVersionCommand {
11087
+ /**
11088
+ *
11089
+ * @type {string}
11090
+ * @memberof UpdateTemplateVersionCommand
11091
+ */
11092
+ 'name'?: string | null;
11093
+ /**
11094
+ *
11095
+ * @type {string}
11096
+ * @memberof UpdateTemplateVersionCommand
11097
+ */
11098
+ 'subject'?: string | null;
11099
+ /**
11100
+ *
11101
+ * @type {string}
11102
+ * @memberof UpdateTemplateVersionCommand
11103
+ */
11104
+ 'htmlContent'?: string | null;
11105
+ }
10908
11106
  /**
10909
11107
  *
10910
11108
  * @export
@@ -15373,6 +15571,39 @@ export class CHManagersApi extends BaseAPI {
15373
15571
  */
15374
15572
  export const ChatUsersApiAxiosParamCreator = function (configuration?: Configuration) {
15375
15573
  return {
15574
+ /**
15575
+ *
15576
+ * @param {*} [options] Override http request option.
15577
+ * @throws {RequiredError}
15578
+ */
15579
+ apiV1ChatusersCurrentGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15580
+ const localVarPath = `/api/v1/chatusers/current`;
15581
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15582
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15583
+ let baseOptions;
15584
+ if (configuration) {
15585
+ baseOptions = configuration.baseOptions;
15586
+ }
15587
+
15588
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15589
+ const localVarHeaderParameter = {} as any;
15590
+ const localVarQueryParameter = {} as any;
15591
+
15592
+ // authentication oauth2 required
15593
+ // oauth required
15594
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
15595
+
15596
+
15597
+
15598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15600
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15601
+
15602
+ return {
15603
+ url: toPathString(localVarUrlObj),
15604
+ options: localVarRequestOptions,
15605
+ };
15606
+ },
15376
15607
  /**
15377
15608
  *
15378
15609
  * @summary Get all chatUsers.
@@ -15598,6 +15829,15 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
15598
15829
  export const ChatUsersApiFp = function(configuration?: Configuration) {
15599
15830
  const localVarAxiosParamCreator = ChatUsersApiAxiosParamCreator(configuration)
15600
15831
  return {
15832
+ /**
15833
+ *
15834
+ * @param {*} [options] Override http request option.
15835
+ * @throws {RequiredError}
15836
+ */
15837
+ async apiV1ChatusersCurrentGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
15838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatusersCurrentGet(options);
15839
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15840
+ },
15601
15841
  /**
15602
15842
  *
15603
15843
  * @summary Get all chatUsers.
@@ -15668,6 +15908,14 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
15668
15908
  export const ChatUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15669
15909
  const localVarFp = ChatUsersApiFp(configuration)
15670
15910
  return {
15911
+ /**
15912
+ *
15913
+ * @param {*} [options] Override http request option.
15914
+ * @throws {RequiredError}
15915
+ */
15916
+ apiV1ChatusersCurrentGet(options?: any): AxiosPromise<ChatUserModel> {
15917
+ return localVarFp.apiV1ChatusersCurrentGet(options).then((request) => request(axios, basePath));
15918
+ },
15671
15919
  /**
15672
15920
  *
15673
15921
  * @summary Get all chatUsers.
@@ -15733,6 +15981,16 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
15733
15981
  * @extends {BaseAPI}
15734
15982
  */
15735
15983
  export class ChatUsersApi extends BaseAPI {
15984
+ /**
15985
+ *
15986
+ * @param {*} [options] Override http request option.
15987
+ * @throws {RequiredError}
15988
+ * @memberof ChatUsersApi
15989
+ */
15990
+ public apiV1ChatusersCurrentGet(options?: AxiosRequestConfig) {
15991
+ return ChatUsersApiFp(this.configuration).apiV1ChatusersCurrentGet(options).then((request) => request(this.axios, this.basePath));
15992
+ }
15993
+
15736
15994
  /**
15737
15995
  *
15738
15996
  * @summary Get all chatUsers.
@@ -23249,6 +23507,503 @@ export class DoctorsApi extends BaseAPI {
23249
23507
  }
23250
23508
 
23251
23509
 
23510
+ /**
23511
+ * EmailMarketingsApi - axios parameter creator
23512
+ * @export
23513
+ */
23514
+ export const EmailMarketingsApiAxiosParamCreator = function (configuration?: Configuration) {
23515
+ return {
23516
+ /**
23517
+ *
23518
+ * @summary Get all templateVersions.
23519
+ * @param {number} [page]
23520
+ * @param {number} [limit]
23521
+ * @param {Date} [lastRetrieved]
23522
+ * @param {*} [options] Override http request option.
23523
+ * @throws {RequiredError}
23524
+ */
23525
+ apiV1EmailmarketingsVersionsGet: async (page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23526
+ const localVarPath = `/api/v1/emailmarketings/versions`;
23527
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23528
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23529
+ let baseOptions;
23530
+ if (configuration) {
23531
+ baseOptions = configuration.baseOptions;
23532
+ }
23533
+
23534
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
23535
+ const localVarHeaderParameter = {} as any;
23536
+ const localVarQueryParameter = {} as any;
23537
+
23538
+ // authentication oauth2 required
23539
+ // oauth required
23540
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
23541
+
23542
+ if (page !== undefined) {
23543
+ localVarQueryParameter['page'] = page;
23544
+ }
23545
+
23546
+ if (limit !== undefined) {
23547
+ localVarQueryParameter['limit'] = limit;
23548
+ }
23549
+
23550
+ if (lastRetrieved !== undefined) {
23551
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
23552
+ (lastRetrieved as any).toISOString() :
23553
+ lastRetrieved;
23554
+ }
23555
+
23556
+
23557
+
23558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23560
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23561
+
23562
+ return {
23563
+ url: toPathString(localVarUrlObj),
23564
+ options: localVarRequestOptions,
23565
+ };
23566
+ },
23567
+ /**
23568
+ *
23569
+ * @summary Create a templateVersion.
23570
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
23571
+ * @param {*} [options] Override http request option.
23572
+ * @throws {RequiredError}
23573
+ */
23574
+ apiV1EmailmarketingsVersionsPost: async (createTemplateVersionCommand?: CreateTemplateVersionCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23575
+ const localVarPath = `/api/v1/emailmarketings/versions`;
23576
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23577
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23578
+ let baseOptions;
23579
+ if (configuration) {
23580
+ baseOptions = configuration.baseOptions;
23581
+ }
23582
+
23583
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
23584
+ const localVarHeaderParameter = {} as any;
23585
+ const localVarQueryParameter = {} as any;
23586
+
23587
+ // authentication oauth2 required
23588
+ // oauth required
23589
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
23590
+
23591
+
23592
+
23593
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23594
+
23595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23597
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23598
+ localVarRequestOptions.data = serializeDataIfNeeded(createTemplateVersionCommand, localVarRequestOptions, configuration)
23599
+
23600
+ return {
23601
+ url: toPathString(localVarUrlObj),
23602
+ options: localVarRequestOptions,
23603
+ };
23604
+ },
23605
+ /**
23606
+ *
23607
+ * @summary Delete templateVersion.
23608
+ * @param {string} versionId
23609
+ * @param {*} [options] Override http request option.
23610
+ * @throws {RequiredError}
23611
+ */
23612
+ apiV1EmailmarketingsVersionsVersionIdDelete: async (versionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23613
+ // verify required parameter 'versionId' is not null or undefined
23614
+ assertParamExists('apiV1EmailmarketingsVersionsVersionIdDelete', 'versionId', versionId)
23615
+ const localVarPath = `/api/v1/emailmarketings/versions/{versionId}`
23616
+ .replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
23617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23619
+ let baseOptions;
23620
+ if (configuration) {
23621
+ baseOptions = configuration.baseOptions;
23622
+ }
23623
+
23624
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
23625
+ const localVarHeaderParameter = {} as any;
23626
+ const localVarQueryParameter = {} as any;
23627
+
23628
+ // authentication oauth2 required
23629
+ // oauth required
23630
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
23631
+
23632
+
23633
+
23634
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23635
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23636
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23637
+
23638
+ return {
23639
+ url: toPathString(localVarUrlObj),
23640
+ options: localVarRequestOptions,
23641
+ };
23642
+ },
23643
+ /**
23644
+ *
23645
+ * @summary Get templateVersion.
23646
+ * @param {string} versionId
23647
+ * @param {*} [options] Override http request option.
23648
+ * @throws {RequiredError}
23649
+ */
23650
+ apiV1EmailmarketingsVersionsVersionIdGet: async (versionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23651
+ // verify required parameter 'versionId' is not null or undefined
23652
+ assertParamExists('apiV1EmailmarketingsVersionsVersionIdGet', 'versionId', versionId)
23653
+ const localVarPath = `/api/v1/emailmarketings/versions/{versionId}`
23654
+ .replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
23655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23657
+ let baseOptions;
23658
+ if (configuration) {
23659
+ baseOptions = configuration.baseOptions;
23660
+ }
23661
+
23662
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
23663
+ const localVarHeaderParameter = {} as any;
23664
+ const localVarQueryParameter = {} as any;
23665
+
23666
+ // authentication oauth2 required
23667
+ // oauth required
23668
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
23669
+
23670
+
23671
+
23672
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23674
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23675
+
23676
+ return {
23677
+ url: toPathString(localVarUrlObj),
23678
+ options: localVarRequestOptions,
23679
+ };
23680
+ },
23681
+ /**
23682
+ *
23683
+ * @summary Update templateVersion.
23684
+ * @param {string} versionId
23685
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
23686
+ * @param {*} [options] Override http request option.
23687
+ * @throws {RequiredError}
23688
+ */
23689
+ apiV1EmailmarketingsVersionsVersionIdPut: async (versionId: string, updateTemplateVersionCommand?: UpdateTemplateVersionCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23690
+ // verify required parameter 'versionId' is not null or undefined
23691
+ assertParamExists('apiV1EmailmarketingsVersionsVersionIdPut', 'versionId', versionId)
23692
+ const localVarPath = `/api/v1/emailmarketings/versions/{versionId}`
23693
+ .replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
23694
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23695
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23696
+ let baseOptions;
23697
+ if (configuration) {
23698
+ baseOptions = configuration.baseOptions;
23699
+ }
23700
+
23701
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
23702
+ const localVarHeaderParameter = {} as any;
23703
+ const localVarQueryParameter = {} as any;
23704
+
23705
+ // authentication oauth2 required
23706
+ // oauth required
23707
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
23708
+
23709
+
23710
+
23711
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23712
+
23713
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23715
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23716
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTemplateVersionCommand, localVarRequestOptions, configuration)
23717
+
23718
+ return {
23719
+ url: toPathString(localVarUrlObj),
23720
+ options: localVarRequestOptions,
23721
+ };
23722
+ },
23723
+ /**
23724
+ *
23725
+ * @summary Send templateVersion email.
23726
+ * @param {string} versionId
23727
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
23728
+ * @param {*} [options] Override http request option.
23729
+ * @throws {RequiredError}
23730
+ */
23731
+ apiV1EmailmarketingsVersionsVersionIdSendPost: async (versionId: string, sendTemplateVersionCommand?: SendTemplateVersionCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23732
+ // verify required parameter 'versionId' is not null or undefined
23733
+ assertParamExists('apiV1EmailmarketingsVersionsVersionIdSendPost', 'versionId', versionId)
23734
+ const localVarPath = `/api/v1/emailmarketings/versions/{versionId}/send`
23735
+ .replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
23736
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23737
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23738
+ let baseOptions;
23739
+ if (configuration) {
23740
+ baseOptions = configuration.baseOptions;
23741
+ }
23742
+
23743
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
23744
+ const localVarHeaderParameter = {} as any;
23745
+ const localVarQueryParameter = {} as any;
23746
+
23747
+ // authentication oauth2 required
23748
+ // oauth required
23749
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
23750
+
23751
+
23752
+
23753
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23754
+
23755
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23756
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23757
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23758
+ localVarRequestOptions.data = serializeDataIfNeeded(sendTemplateVersionCommand, localVarRequestOptions, configuration)
23759
+
23760
+ return {
23761
+ url: toPathString(localVarUrlObj),
23762
+ options: localVarRequestOptions,
23763
+ };
23764
+ },
23765
+ }
23766
+ };
23767
+
23768
+ /**
23769
+ * EmailMarketingsApi - functional programming interface
23770
+ * @export
23771
+ */
23772
+ export const EmailMarketingsApiFp = function(configuration?: Configuration) {
23773
+ const localVarAxiosParamCreator = EmailMarketingsApiAxiosParamCreator(configuration)
23774
+ return {
23775
+ /**
23776
+ *
23777
+ * @summary Get all templateVersions.
23778
+ * @param {number} [page]
23779
+ * @param {number} [limit]
23780
+ * @param {Date} [lastRetrieved]
23781
+ * @param {*} [options] Override http request option.
23782
+ * @throws {RequiredError}
23783
+ */
23784
+ async apiV1EmailmarketingsVersionsGet(page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplateVersionsModel>> {
23785
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options);
23786
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23787
+ },
23788
+ /**
23789
+ *
23790
+ * @summary Create a templateVersion.
23791
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
23792
+ * @param {*} [options] Override http request option.
23793
+ * @throws {RequiredError}
23794
+ */
23795
+ async apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand?: CreateTemplateVersionCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplateVersionModel>> {
23796
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options);
23797
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23798
+ },
23799
+ /**
23800
+ *
23801
+ * @summary Delete templateVersion.
23802
+ * @param {string} versionId
23803
+ * @param {*} [options] Override http request option.
23804
+ * @throws {RequiredError}
23805
+ */
23806
+ async apiV1EmailmarketingsVersionsVersionIdDelete(versionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
23807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options);
23808
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23809
+ },
23810
+ /**
23811
+ *
23812
+ * @summary Get templateVersion.
23813
+ * @param {string} versionId
23814
+ * @param {*} [options] Override http request option.
23815
+ * @throws {RequiredError}
23816
+ */
23817
+ async apiV1EmailmarketingsVersionsVersionIdGet(versionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplateVersionModel>> {
23818
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options);
23819
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23820
+ },
23821
+ /**
23822
+ *
23823
+ * @summary Update templateVersion.
23824
+ * @param {string} versionId
23825
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
23826
+ * @param {*} [options] Override http request option.
23827
+ * @throws {RequiredError}
23828
+ */
23829
+ async apiV1EmailmarketingsVersionsVersionIdPut(versionId: string, updateTemplateVersionCommand?: UpdateTemplateVersionCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemplateVersionModel>> {
23830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options);
23831
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23832
+ },
23833
+ /**
23834
+ *
23835
+ * @summary Send templateVersion email.
23836
+ * @param {string} versionId
23837
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
23838
+ * @param {*} [options] Override http request option.
23839
+ * @throws {RequiredError}
23840
+ */
23841
+ async apiV1EmailmarketingsVersionsVersionIdSendPost(versionId: string, sendTemplateVersionCommand?: SendTemplateVersionCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
23842
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options);
23843
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23844
+ },
23845
+ }
23846
+ };
23847
+
23848
+ /**
23849
+ * EmailMarketingsApi - factory interface
23850
+ * @export
23851
+ */
23852
+ export const EmailMarketingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
23853
+ const localVarFp = EmailMarketingsApiFp(configuration)
23854
+ return {
23855
+ /**
23856
+ *
23857
+ * @summary Get all templateVersions.
23858
+ * @param {number} [page]
23859
+ * @param {number} [limit]
23860
+ * @param {Date} [lastRetrieved]
23861
+ * @param {*} [options] Override http request option.
23862
+ * @throws {RequiredError}
23863
+ */
23864
+ apiV1EmailmarketingsVersionsGet(page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<TemplateVersionsModel> {
23865
+ return localVarFp.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
23866
+ },
23867
+ /**
23868
+ *
23869
+ * @summary Create a templateVersion.
23870
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
23871
+ * @param {*} [options] Override http request option.
23872
+ * @throws {RequiredError}
23873
+ */
23874
+ apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand?: CreateTemplateVersionCommand, options?: any): AxiosPromise<TemplateVersionModel> {
23875
+ return localVarFp.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then((request) => request(axios, basePath));
23876
+ },
23877
+ /**
23878
+ *
23879
+ * @summary Delete templateVersion.
23880
+ * @param {string} versionId
23881
+ * @param {*} [options] Override http request option.
23882
+ * @throws {RequiredError}
23883
+ */
23884
+ apiV1EmailmarketingsVersionsVersionIdDelete(versionId: string, options?: any): AxiosPromise<boolean> {
23885
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then((request) => request(axios, basePath));
23886
+ },
23887
+ /**
23888
+ *
23889
+ * @summary Get templateVersion.
23890
+ * @param {string} versionId
23891
+ * @param {*} [options] Override http request option.
23892
+ * @throws {RequiredError}
23893
+ */
23894
+ apiV1EmailmarketingsVersionsVersionIdGet(versionId: string, options?: any): AxiosPromise<TemplateVersionModel> {
23895
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then((request) => request(axios, basePath));
23896
+ },
23897
+ /**
23898
+ *
23899
+ * @summary Update templateVersion.
23900
+ * @param {string} versionId
23901
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
23902
+ * @param {*} [options] Override http request option.
23903
+ * @throws {RequiredError}
23904
+ */
23905
+ apiV1EmailmarketingsVersionsVersionIdPut(versionId: string, updateTemplateVersionCommand?: UpdateTemplateVersionCommand, options?: any): AxiosPromise<TemplateVersionModel> {
23906
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then((request) => request(axios, basePath));
23907
+ },
23908
+ /**
23909
+ *
23910
+ * @summary Send templateVersion email.
23911
+ * @param {string} versionId
23912
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
23913
+ * @param {*} [options] Override http request option.
23914
+ * @throws {RequiredError}
23915
+ */
23916
+ apiV1EmailmarketingsVersionsVersionIdSendPost(versionId: string, sendTemplateVersionCommand?: SendTemplateVersionCommand, options?: any): AxiosPromise<boolean> {
23917
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then((request) => request(axios, basePath));
23918
+ },
23919
+ };
23920
+ };
23921
+
23922
+ /**
23923
+ * EmailMarketingsApi - object-oriented interface
23924
+ * @export
23925
+ * @class EmailMarketingsApi
23926
+ * @extends {BaseAPI}
23927
+ */
23928
+ export class EmailMarketingsApi extends BaseAPI {
23929
+ /**
23930
+ *
23931
+ * @summary Get all templateVersions.
23932
+ * @param {number} [page]
23933
+ * @param {number} [limit]
23934
+ * @param {Date} [lastRetrieved]
23935
+ * @param {*} [options] Override http request option.
23936
+ * @throws {RequiredError}
23937
+ * @memberof EmailMarketingsApi
23938
+ */
23939
+ public apiV1EmailmarketingsVersionsGet(page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23940
+ return EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23941
+ }
23942
+
23943
+ /**
23944
+ *
23945
+ * @summary Create a templateVersion.
23946
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
23947
+ * @param {*} [options] Override http request option.
23948
+ * @throws {RequiredError}
23949
+ * @memberof EmailMarketingsApi
23950
+ */
23951
+ public apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand?: CreateTemplateVersionCommand, options?: AxiosRequestConfig) {
23952
+ return EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then((request) => request(this.axios, this.basePath));
23953
+ }
23954
+
23955
+ /**
23956
+ *
23957
+ * @summary Delete templateVersion.
23958
+ * @param {string} versionId
23959
+ * @param {*} [options] Override http request option.
23960
+ * @throws {RequiredError}
23961
+ * @memberof EmailMarketingsApi
23962
+ */
23963
+ public apiV1EmailmarketingsVersionsVersionIdDelete(versionId: string, options?: AxiosRequestConfig) {
23964
+ return EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then((request) => request(this.axios, this.basePath));
23965
+ }
23966
+
23967
+ /**
23968
+ *
23969
+ * @summary Get templateVersion.
23970
+ * @param {string} versionId
23971
+ * @param {*} [options] Override http request option.
23972
+ * @throws {RequiredError}
23973
+ * @memberof EmailMarketingsApi
23974
+ */
23975
+ public apiV1EmailmarketingsVersionsVersionIdGet(versionId: string, options?: AxiosRequestConfig) {
23976
+ return EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then((request) => request(this.axios, this.basePath));
23977
+ }
23978
+
23979
+ /**
23980
+ *
23981
+ * @summary Update templateVersion.
23982
+ * @param {string} versionId
23983
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
23984
+ * @param {*} [options] Override http request option.
23985
+ * @throws {RequiredError}
23986
+ * @memberof EmailMarketingsApi
23987
+ */
23988
+ public apiV1EmailmarketingsVersionsVersionIdPut(versionId: string, updateTemplateVersionCommand?: UpdateTemplateVersionCommand, options?: AxiosRequestConfig) {
23989
+ return EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then((request) => request(this.axios, this.basePath));
23990
+ }
23991
+
23992
+ /**
23993
+ *
23994
+ * @summary Send templateVersion email.
23995
+ * @param {string} versionId
23996
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
23997
+ * @param {*} [options] Override http request option.
23998
+ * @throws {RequiredError}
23999
+ * @memberof EmailMarketingsApi
24000
+ */
24001
+ public apiV1EmailmarketingsVersionsVersionIdSendPost(versionId: string, sendTemplateVersionCommand?: SendTemplateVersionCommand, options?: AxiosRequestConfig) {
24002
+ return EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then((request) => request(this.axios, this.basePath));
24003
+ }
24004
+ }
24005
+
24006
+
23252
24007
  /**
23253
24008
  * FaqCategoriesApi - axios parameter creator
23254
24009
  * @export