@closerplatform/spinner-openapi 0.12.1075 → 0.12.1077

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 (3) hide show
  1. package/dist/api.d.ts +148 -73
  2. package/dist/api.js +91 -94
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1693,6 +1693,61 @@ export interface CreateEventActionConfigForm {
1693
1693
  */
1694
1694
  widgetBlockInput?: boolean;
1695
1695
  }
1696
+ /**
1697
+ *
1698
+ * @export
1699
+ * @interface CreateMessageWidgetForm
1700
+ */
1701
+ export interface CreateMessageWidgetForm {
1702
+ /**
1703
+ *
1704
+ * @type {string}
1705
+ * @memberof CreateMessageWidgetForm
1706
+ */
1707
+ locale: string;
1708
+ /**
1709
+ *
1710
+ * @type {OrdinaryConfigContext | AutoAssignConfigContext | OplShowAddressConfigContext | ContactEnquiryConfigContext | CallProposalConfigContext | PredefinedMessageConfigContext}
1711
+ * @memberof CreateMessageWidgetForm
1712
+ */
1713
+ config: OrdinaryConfigContext | AutoAssignConfigContext | OplShowAddressConfigContext | ContactEnquiryConfigContext | CallProposalConfigContext | PredefinedMessageConfigContext;
1714
+ /**
1715
+ *
1716
+ * @type {boolean}
1717
+ * @memberof CreateMessageWidgetForm
1718
+ */
1719
+ availableForAgents: boolean;
1720
+ /**
1721
+ *
1722
+ * @type {string}
1723
+ * @memberof CreateMessageWidgetForm
1724
+ */
1725
+ name: string;
1726
+ /**
1727
+ *
1728
+ * @type {number}
1729
+ * @memberof CreateMessageWidgetForm
1730
+ */
1731
+ expireInterval?: number;
1732
+ /**
1733
+ *
1734
+ * @type {number}
1735
+ * @memberof CreateMessageWidgetForm
1736
+ */
1737
+ sendInterval?: number;
1738
+ /**
1739
+ *
1740
+ * @type {boolean}
1741
+ * @memberof CreateMessageWidgetForm
1742
+ */
1743
+ blockIfPreviousUnsubmitted: boolean;
1744
+ /**
1745
+ *
1746
+ * @type {boolean}
1747
+ * @memberof CreateMessageWidgetForm
1748
+ */
1749
+ routeOnSubmit: boolean;
1750
+ }
1696
1751
  /**
1697
1752
  *
1698
1753
  * @export
@@ -4110,31 +4165,6 @@ export declare enum MessageWidgetConfigContextType {
4110
4165
  OplShowAddressForm = "opl_show_address_form",
4111
4166
  PredefinedMessageForm = "predefined_message_form"
4112
4167
  }
4113
- /**
4114
- *
4115
- * @export
4116
- * @interface MessageWidgetForm
4117
- */
4118
- export interface MessageWidgetForm {
4119
- /**
4120
- *
4121
- * @type {OrdinaryConfigContext | AutoAssignConfigContext | OplShowAddressConfigContext | ContactEnquiryConfigContext | CallProposalConfigContext | PredefinedMessageConfigContext}
4122
- * @memberof MessageWidgetForm
4123
- */
4124
- config: OrdinaryConfigContext | AutoAssignConfigContext | OplShowAddressConfigContext | ContactEnquiryConfigContext | CallProposalConfigContext | PredefinedMessageConfigContext;
4125
- /**
4126
- *
4127
- * @type {boolean}
4128
- * @memberof MessageWidgetForm
4129
- */
4130
- availableForAgents: boolean;
4131
- /**
4132
- *
4133
- * @type {string}
4134
- * @memberof MessageWidgetForm
4135
- */
4136
- name: string;
4137
- }
4138
4168
  /**
4139
4169
  *
4140
4170
  * @export
@@ -6808,6 +6838,55 @@ export interface UpdateEventActionConfigForm {
6808
6838
  */
6809
6839
  widgetBlockInput?: boolean;
6810
6840
  }
6841
+ /**
6842
+ *
6843
+ * @export
6844
+ * @interface UpdateMessageWidgetForm
6845
+ */
6846
+ export interface UpdateMessageWidgetForm {
6847
+ /**
6848
+ *
6849
+ * @type {OrdinaryConfigContext | AutoAssignConfigContext | OplShowAddressConfigContext | ContactEnquiryConfigContext | CallProposalConfigContext | PredefinedMessageConfigContext}
6850
+ * @memberof UpdateMessageWidgetForm
6851
+ */
6852
+ config: OrdinaryConfigContext | AutoAssignConfigContext | OplShowAddressConfigContext | ContactEnquiryConfigContext | CallProposalConfigContext | PredefinedMessageConfigContext;
6853
+ /**
6854
+ *
6855
+ * @type {boolean}
6856
+ * @memberof UpdateMessageWidgetForm
6857
+ */
6858
+ availableForAgents: boolean;
6859
+ /**
6860
+ *
6861
+ * @type {string}
6862
+ * @memberof UpdateMessageWidgetForm
6863
+ */
6864
+ name: string;
6865
+ /**
6866
+ *
6867
+ * @type {number}
6868
+ * @memberof UpdateMessageWidgetForm
6869
+ */
6870
+ expireInterval?: number;
6871
+ /**
6872
+ *
6873
+ * @type {number}
6874
+ * @memberof UpdateMessageWidgetForm
6875
+ */
6876
+ sendInterval?: number;
6877
+ /**
6878
+ *
6879
+ * @type {boolean}
6880
+ * @memberof UpdateMessageWidgetForm
6881
+ */
6882
+ blockIfPreviousUnsubmitted: boolean;
6883
+ /**
6884
+ *
6885
+ * @type {boolean}
6886
+ * @memberof UpdateMessageWidgetForm
6887
+ */
6888
+ routeOnSubmit: boolean;
6889
+ }
6811
6890
  /**
6812
6891
  *
6813
6892
  * @export
@@ -10490,46 +10569,45 @@ export declare const MessageWidgetsApiFetchParamCreator: (configuration?: Config
10490
10569
  /**
10491
10570
  *
10492
10571
  * @summary post message widgets config by locale
10493
- * @param {MessageWidgetForm} body
10494
- * @param {string} value
10572
+ * @param {CreateMessageWidgetForm} body
10495
10573
  * @param {*} [options] Override http request option.
10496
10574
  * @throws {RequiredError}
10497
10575
  */
10498
- createMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): FetchArgs;
10576
+ createMessageWidgetConfig(body: CreateMessageWidgetForm, options?: any): FetchArgs;
10499
10577
  /**
10500
10578
  *
10501
10579
  * @summary delete message widget config by widget id
10502
- * @param {string} value
10580
+ * @param {string} widgetId
10503
10581
  * @param {*} [options] Override http request option.
10504
10582
  * @throws {RequiredError}
10505
10583
  */
10506
- deleteMessageWidgetConfig(value: string, options?: any): FetchArgs;
10584
+ deleteMessageWidgetConfig(widgetId: string, options?: any): FetchArgs;
10507
10585
  /**
10508
10586
  *
10509
10587
  * @summary get message widget config
10510
- * @param {string} orgId
10511
10588
  * @param {string} widgetId
10589
+ * @param {string} orgId
10512
10590
  * @param {*} [options] Override http request option.
10513
10591
  * @throws {RequiredError}
10514
10592
  */
10515
- getMessageWidgetConfig(orgId: string, widgetId: string, options?: any): FetchArgs;
10593
+ getMessageWidgetConfig(widgetId: string, orgId: string, options?: any): FetchArgs;
10516
10594
  /**
10517
10595
  *
10518
10596
  * @summary get message widgets configs for org and locale
10519
- * @param {string} value
10597
+ * @param {string} locale
10520
10598
  * @param {*} [options] Override http request option.
10521
10599
  * @throws {RequiredError}
10522
10600
  */
10523
- getMessageWidgetsConfigs(value: string, options?: any): FetchArgs;
10601
+ getMessageWidgetsConfigs(locale: string, options?: any): FetchArgs;
10524
10602
  /**
10525
10603
  *
10526
10604
  * @summary update message widget config by widget id
10527
- * @param {MessageWidgetForm} body
10528
- * @param {string} value
10605
+ * @param {UpdateMessageWidgetForm} body
10606
+ * @param {string} widgetId
10529
10607
  * @param {*} [options] Override http request option.
10530
10608
  * @throws {RequiredError}
10531
10609
  */
10532
- updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): FetchArgs;
10610
+ updateMessageWidgetConfig(body: UpdateMessageWidgetForm, widgetId: string, options?: any): FetchArgs;
10533
10611
  };
10534
10612
  /**
10535
10613
  * MessageWidgetsApi - functional programming interface
@@ -10539,46 +10617,45 @@ export declare const MessageWidgetsApiFp: (configuration?: Configuration) => {
10539
10617
  /**
10540
10618
  *
10541
10619
  * @summary post message widgets config by locale
10542
- * @param {MessageWidgetForm} body
10543
- * @param {string} value
10620
+ * @param {CreateMessageWidgetForm} body
10544
10621
  * @param {*} [options] Override http request option.
10545
10622
  * @throws {RequiredError}
10546
10623
  */
10547
- createMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
10624
+ createMessageWidgetConfig(body: CreateMessageWidgetForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
10548
10625
  /**
10549
10626
  *
10550
10627
  * @summary delete message widget config by widget id
10551
- * @param {string} value
10628
+ * @param {string} widgetId
10552
10629
  * @param {*} [options] Override http request option.
10553
10630
  * @throws {RequiredError}
10554
10631
  */
10555
- deleteMessageWidgetConfig(value: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
10632
+ deleteMessageWidgetConfig(widgetId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
10556
10633
  /**
10557
10634
  *
10558
10635
  * @summary get message widget config
10559
- * @param {string} orgId
10560
10636
  * @param {string} widgetId
10637
+ * @param {string} orgId
10561
10638
  * @param {*} [options] Override http request option.
10562
10639
  * @throws {RequiredError}
10563
10640
  */
10564
- getMessageWidgetConfig(orgId: string, widgetId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
10641
+ getMessageWidgetConfig(widgetId: string, orgId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
10565
10642
  /**
10566
10643
  *
10567
10644
  * @summary get message widgets configs for org and locale
10568
- * @param {string} value
10645
+ * @param {string} locale
10569
10646
  * @param {*} [options] Override http request option.
10570
10647
  * @throws {RequiredError}
10571
10648
  */
10572
- getMessageWidgetsConfigs(value: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<MessageWidgetConfig>>;
10649
+ getMessageWidgetsConfigs(locale: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<MessageWidgetConfig>>;
10573
10650
  /**
10574
10651
  *
10575
10652
  * @summary update message widget config by widget id
10576
- * @param {MessageWidgetForm} body
10577
- * @param {string} value
10653
+ * @param {UpdateMessageWidgetForm} body
10654
+ * @param {string} widgetId
10578
10655
  * @param {*} [options] Override http request option.
10579
10656
  * @throws {RequiredError}
10580
10657
  */
10581
- updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
10658
+ updateMessageWidgetConfig(body: UpdateMessageWidgetForm, widgetId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MessageWidgetConfig>;
10582
10659
  };
10583
10660
  /**
10584
10661
  * MessageWidgetsApi - factory interface
@@ -10588,46 +10665,45 @@ export declare const MessageWidgetsApiFactory: (configuration?: Configuration, f
10588
10665
  /**
10589
10666
  *
10590
10667
  * @summary post message widgets config by locale
10591
- * @param {MessageWidgetForm} body
10592
- * @param {string} value
10668
+ * @param {CreateMessageWidgetForm} body
10593
10669
  * @param {*} [options] Override http request option.
10594
10670
  * @throws {RequiredError}
10595
10671
  */
10596
- createMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): Promise<MessageWidgetConfig>;
10672
+ createMessageWidgetConfig(body: CreateMessageWidgetForm, options?: any): Promise<MessageWidgetConfig>;
10597
10673
  /**
10598
10674
  *
10599
10675
  * @summary delete message widget config by widget id
10600
- * @param {string} value
10676
+ * @param {string} widgetId
10601
10677
  * @param {*} [options] Override http request option.
10602
10678
  * @throws {RequiredError}
10603
10679
  */
10604
- deleteMessageWidgetConfig(value: string, options?: any): Promise<Response>;
10680
+ deleteMessageWidgetConfig(widgetId: string, options?: any): Promise<Response>;
10605
10681
  /**
10606
10682
  *
10607
10683
  * @summary get message widget config
10608
- * @param {string} orgId
10609
10684
  * @param {string} widgetId
10685
+ * @param {string} orgId
10610
10686
  * @param {*} [options] Override http request option.
10611
10687
  * @throws {RequiredError}
10612
10688
  */
10613
- getMessageWidgetConfig(orgId: string, widgetId: string, options?: any): Promise<MessageWidgetConfig>;
10689
+ getMessageWidgetConfig(widgetId: string, orgId: string, options?: any): Promise<MessageWidgetConfig>;
10614
10690
  /**
10615
10691
  *
10616
10692
  * @summary get message widgets configs for org and locale
10617
- * @param {string} value
10693
+ * @param {string} locale
10618
10694
  * @param {*} [options] Override http request option.
10619
10695
  * @throws {RequiredError}
10620
10696
  */
10621
- getMessageWidgetsConfigs(value: string, options?: any): Promise<MessageWidgetConfig[]>;
10697
+ getMessageWidgetsConfigs(locale: string, options?: any): Promise<MessageWidgetConfig[]>;
10622
10698
  /**
10623
10699
  *
10624
10700
  * @summary update message widget config by widget id
10625
- * @param {MessageWidgetForm} body
10626
- * @param {string} value
10701
+ * @param {UpdateMessageWidgetForm} body
10702
+ * @param {string} widgetId
10627
10703
  * @param {*} [options] Override http request option.
10628
10704
  * @throws {RequiredError}
10629
10705
  */
10630
- updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): Promise<MessageWidgetConfig>;
10706
+ updateMessageWidgetConfig(body: UpdateMessageWidgetForm, widgetId: string, options?: any): Promise<MessageWidgetConfig>;
10631
10707
  };
10632
10708
  /**
10633
10709
  * MessageWidgetsApi - object-oriented interface
@@ -10639,51 +10715,50 @@ export declare class MessageWidgetsApi extends BaseAPI {
10639
10715
  /**
10640
10716
  *
10641
10717
  * @summary post message widgets config by locale
10642
- * @param {MessageWidgetForm} body
10643
- * @param {string} value
10718
+ * @param {CreateMessageWidgetForm} body
10644
10719
  * @param {*} [options] Override http request option.
10645
10720
  * @throws {RequiredError}
10646
10721
  * @memberof MessageWidgetsApi
10647
10722
  */
10648
- createMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): Promise<MessageWidgetConfig>;
10723
+ createMessageWidgetConfig(body: CreateMessageWidgetForm, options?: any): Promise<MessageWidgetConfig>;
10649
10724
  /**
10650
10725
  *
10651
10726
  * @summary delete message widget config by widget id
10652
- * @param {string} value
10727
+ * @param {string} widgetId
10653
10728
  * @param {*} [options] Override http request option.
10654
10729
  * @throws {RequiredError}
10655
10730
  * @memberof MessageWidgetsApi
10656
10731
  */
10657
- deleteMessageWidgetConfig(value: string, options?: any): Promise<Response>;
10732
+ deleteMessageWidgetConfig(widgetId: string, options?: any): Promise<Response>;
10658
10733
  /**
10659
10734
  *
10660
10735
  * @summary get message widget config
10661
- * @param {string} orgId
10662
10736
  * @param {string} widgetId
10737
+ * @param {string} orgId
10663
10738
  * @param {*} [options] Override http request option.
10664
10739
  * @throws {RequiredError}
10665
10740
  * @memberof MessageWidgetsApi
10666
10741
  */
10667
- getMessageWidgetConfig(orgId: string, widgetId: string, options?: any): Promise<MessageWidgetConfig>;
10742
+ getMessageWidgetConfig(widgetId: string, orgId: string, options?: any): Promise<MessageWidgetConfig>;
10668
10743
  /**
10669
10744
  *
10670
10745
  * @summary get message widgets configs for org and locale
10671
- * @param {string} value
10746
+ * @param {string} locale
10672
10747
  * @param {*} [options] Override http request option.
10673
10748
  * @throws {RequiredError}
10674
10749
  * @memberof MessageWidgetsApi
10675
10750
  */
10676
- getMessageWidgetsConfigs(value: string, options?: any): Promise<MessageWidgetConfig[]>;
10751
+ getMessageWidgetsConfigs(locale: string, options?: any): Promise<MessageWidgetConfig[]>;
10677
10752
  /**
10678
10753
  *
10679
10754
  * @summary update message widget config by widget id
10680
- * @param {MessageWidgetForm} body
10681
- * @param {string} value
10755
+ * @param {UpdateMessageWidgetForm} body
10756
+ * @param {string} widgetId
10682
10757
  * @param {*} [options] Override http request option.
10683
10758
  * @throws {RequiredError}
10684
10759
  * @memberof MessageWidgetsApi
10685
10760
  */
10686
- updateMessageWidgetConfig(body: MessageWidgetForm, value: string, options?: any): Promise<MessageWidgetConfig>;
10761
+ updateMessageWidgetConfig(body: UpdateMessageWidgetForm, widgetId: string, options?: any): Promise<MessageWidgetConfig>;
10687
10762
  }
10688
10763
  /**
10689
10764
  * NLUApi - fetch parameter creator
package/dist/api.js CHANGED
@@ -7230,22 +7230,16 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7230
7230
  /**
7231
7231
  *
7232
7232
  * @summary post message widgets config by locale
7233
- * @param {MessageWidgetForm} body
7234
- * @param {string} value
7233
+ * @param {CreateMessageWidgetForm} body
7235
7234
  * @param {*} [options] Override http request option.
7236
7235
  * @throws {RequiredError}
7237
7236
  */
7238
- createMessageWidgetConfig(body, value, options = {}) {
7237
+ createMessageWidgetConfig(body, options = {}) {
7239
7238
  // verify required parameter 'body' is not null or undefined
7240
7239
  if (body === null || body === undefined) {
7241
7240
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling createMessageWidgetConfig.');
7242
7241
  }
7243
- // verify required parameter 'value' is not null or undefined
7244
- if (value === null || value === undefined) {
7245
- throw new RequiredError('value', 'Required parameter value was null or undefined when calling createMessageWidgetConfig.');
7246
- }
7247
- const localVarPath = `/message-widgets/{value}`
7248
- .replace(`{${"value"}}`, encodeURIComponent(String(value)));
7242
+ const localVarPath = `/message-widgets`;
7249
7243
  const localVarUrlObj = url.parse(localVarPath, true);
7250
7244
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
7251
7245
  const localVarHeaderParameter = {};
@@ -7262,7 +7256,7 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7262
7256
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
7263
7257
  delete localVarUrlObj.search;
7264
7258
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
7265
- const needsSerialization = ("MessageWidgetForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
7259
+ const needsSerialization = ("CreateMessageWidgetForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
7266
7260
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
7267
7261
  return {
7268
7262
  url: url.format(localVarUrlObj),
@@ -7272,17 +7266,17 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7272
7266
  /**
7273
7267
  *
7274
7268
  * @summary delete message widget config by widget id
7275
- * @param {string} value
7269
+ * @param {string} widgetId
7276
7270
  * @param {*} [options] Override http request option.
7277
7271
  * @throws {RequiredError}
7278
7272
  */
7279
- deleteMessageWidgetConfig(value, options = {}) {
7280
- // verify required parameter 'value' is not null or undefined
7281
- if (value === null || value === undefined) {
7282
- throw new RequiredError('value', 'Required parameter value was null or undefined when calling deleteMessageWidgetConfig.');
7273
+ deleteMessageWidgetConfig(widgetId, options = {}) {
7274
+ // verify required parameter 'widgetId' is not null or undefined
7275
+ if (widgetId === null || widgetId === undefined) {
7276
+ throw new RequiredError('widgetId', 'Required parameter widgetId was null or undefined when calling deleteMessageWidgetConfig.');
7283
7277
  }
7284
- const localVarPath = `/message-widgets/{value}`
7285
- .replace(`{${"value"}}`, encodeURIComponent(String(value)));
7278
+ const localVarPath = `/message-widgets/{widgetId}`
7279
+ .replace(`{${"widgetId"}}`, encodeURIComponent(String(widgetId)));
7286
7280
  const localVarUrlObj = url.parse(localVarPath, true);
7287
7281
  const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
7288
7282
  const localVarHeaderParameter = {};
@@ -7306,27 +7300,29 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7306
7300
  /**
7307
7301
  *
7308
7302
  * @summary get message widget config
7309
- * @param {string} orgId
7310
7303
  * @param {string} widgetId
7304
+ * @param {string} orgId
7311
7305
  * @param {*} [options] Override http request option.
7312
7306
  * @throws {RequiredError}
7313
7307
  */
7314
- getMessageWidgetConfig(orgId, widgetId, options = {}) {
7315
- // verify required parameter 'orgId' is not null or undefined
7316
- if (orgId === null || orgId === undefined) {
7317
- throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling getMessageWidgetConfig.');
7318
- }
7308
+ getMessageWidgetConfig(widgetId, orgId, options = {}) {
7319
7309
  // verify required parameter 'widgetId' is not null or undefined
7320
7310
  if (widgetId === null || widgetId === undefined) {
7321
7311
  throw new RequiredError('widgetId', 'Required parameter widgetId was null or undefined when calling getMessageWidgetConfig.');
7322
7312
  }
7323
- const localVarPath = `/message-widgets/{orgId}/{widgetId}`
7324
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
7313
+ // verify required parameter 'orgId' is not null or undefined
7314
+ if (orgId === null || orgId === undefined) {
7315
+ throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling getMessageWidgetConfig.');
7316
+ }
7317
+ const localVarPath = `/message-widgets/{widgetId}`
7325
7318
  .replace(`{${"widgetId"}}`, encodeURIComponent(String(widgetId)));
7326
7319
  const localVarUrlObj = url.parse(localVarPath, true);
7327
7320
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
7328
7321
  const localVarHeaderParameter = {};
7329
7322
  const localVarQueryParameter = {};
7323
+ if (orgId !== undefined) {
7324
+ localVarQueryParameter['orgId'] = orgId;
7325
+ }
7330
7326
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
7331
7327
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
7332
7328
  delete localVarUrlObj.search;
@@ -7339,17 +7335,16 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7339
7335
  /**
7340
7336
  *
7341
7337
  * @summary get message widgets configs for org and locale
7342
- * @param {string} value
7338
+ * @param {string} locale
7343
7339
  * @param {*} [options] Override http request option.
7344
7340
  * @throws {RequiredError}
7345
7341
  */
7346
- getMessageWidgetsConfigs(value, options = {}) {
7347
- // verify required parameter 'value' is not null or undefined
7348
- if (value === null || value === undefined) {
7349
- throw new RequiredError('value', 'Required parameter value was null or undefined when calling getMessageWidgetsConfigs.');
7342
+ getMessageWidgetsConfigs(locale, options = {}) {
7343
+ // verify required parameter 'locale' is not null or undefined
7344
+ if (locale === null || locale === undefined) {
7345
+ throw new RequiredError('locale', 'Required parameter locale was null or undefined when calling getMessageWidgetsConfigs.');
7350
7346
  }
7351
- const localVarPath = `/message-widgets/{value}`
7352
- .replace(`{${"value"}}`, encodeURIComponent(String(value)));
7347
+ const localVarPath = `/message-widgets`;
7353
7348
  const localVarUrlObj = url.parse(localVarPath, true);
7354
7349
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
7355
7350
  const localVarHeaderParameter = {};
@@ -7361,6 +7356,9 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7361
7356
  : configuration.apiKey;
7362
7357
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
7363
7358
  }
7359
+ if (locale !== undefined) {
7360
+ localVarQueryParameter['locale'] = locale;
7361
+ }
7364
7362
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
7365
7363
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
7366
7364
  delete localVarUrlObj.search;
@@ -7373,22 +7371,22 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7373
7371
  /**
7374
7372
  *
7375
7373
  * @summary update message widget config by widget id
7376
- * @param {MessageWidgetForm} body
7377
- * @param {string} value
7374
+ * @param {UpdateMessageWidgetForm} body
7375
+ * @param {string} widgetId
7378
7376
  * @param {*} [options] Override http request option.
7379
7377
  * @throws {RequiredError}
7380
7378
  */
7381
- updateMessageWidgetConfig(body, value, options = {}) {
7379
+ updateMessageWidgetConfig(body, widgetId, options = {}) {
7382
7380
  // verify required parameter 'body' is not null or undefined
7383
7381
  if (body === null || body === undefined) {
7384
7382
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateMessageWidgetConfig.');
7385
7383
  }
7386
- // verify required parameter 'value' is not null or undefined
7387
- if (value === null || value === undefined) {
7388
- throw new RequiredError('value', 'Required parameter value was null or undefined when calling updateMessageWidgetConfig.');
7384
+ // verify required parameter 'widgetId' is not null or undefined
7385
+ if (widgetId === null || widgetId === undefined) {
7386
+ throw new RequiredError('widgetId', 'Required parameter widgetId was null or undefined when calling updateMessageWidgetConfig.');
7389
7387
  }
7390
- const localVarPath = `/message-widgets/{value}`
7391
- .replace(`{${"value"}}`, encodeURIComponent(String(value)));
7388
+ const localVarPath = `/message-widgets/{widgetId}`
7389
+ .replace(`{${"widgetId"}}`, encodeURIComponent(String(widgetId)));
7392
7390
  const localVarUrlObj = url.parse(localVarPath, true);
7393
7391
  const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
7394
7392
  const localVarHeaderParameter = {};
@@ -7405,7 +7403,7 @@ const MessageWidgetsApiFetchParamCreator = function (configuration) {
7405
7403
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
7406
7404
  delete localVarUrlObj.search;
7407
7405
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
7408
- const needsSerialization = ("MessageWidgetForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
7406
+ const needsSerialization = ("UpdateMessageWidgetForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
7409
7407
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
7410
7408
  return {
7411
7409
  url: url.format(localVarUrlObj),
@@ -7424,13 +7422,12 @@ const MessageWidgetsApiFp = function (configuration) {
7424
7422
  /**
7425
7423
  *
7426
7424
  * @summary post message widgets config by locale
7427
- * @param {MessageWidgetForm} body
7428
- * @param {string} value
7425
+ * @param {CreateMessageWidgetForm} body
7429
7426
  * @param {*} [options] Override http request option.
7430
7427
  * @throws {RequiredError}
7431
7428
  */
7432
- createMessageWidgetConfig(body, value, options) {
7433
- const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).createMessageWidgetConfig(body, value, options);
7429
+ createMessageWidgetConfig(body, options) {
7430
+ const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).createMessageWidgetConfig(body, options);
7434
7431
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7435
7432
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7436
7433
  if (response.status >= 200 && response.status < 300) {
@@ -7445,12 +7442,12 @@ const MessageWidgetsApiFp = function (configuration) {
7445
7442
  /**
7446
7443
  *
7447
7444
  * @summary delete message widget config by widget id
7448
- * @param {string} value
7445
+ * @param {string} widgetId
7449
7446
  * @param {*} [options] Override http request option.
7450
7447
  * @throws {RequiredError}
7451
7448
  */
7452
- deleteMessageWidgetConfig(value, options) {
7453
- const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).deleteMessageWidgetConfig(value, options);
7449
+ deleteMessageWidgetConfig(widgetId, options) {
7450
+ const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).deleteMessageWidgetConfig(widgetId, options);
7454
7451
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7455
7452
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7456
7453
  if (response.status >= 200 && response.status < 300) {
@@ -7465,13 +7462,13 @@ const MessageWidgetsApiFp = function (configuration) {
7465
7462
  /**
7466
7463
  *
7467
7464
  * @summary get message widget config
7468
- * @param {string} orgId
7469
7465
  * @param {string} widgetId
7466
+ * @param {string} orgId
7470
7467
  * @param {*} [options] Override http request option.
7471
7468
  * @throws {RequiredError}
7472
7469
  */
7473
- getMessageWidgetConfig(orgId, widgetId, options) {
7474
- const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).getMessageWidgetConfig(orgId, widgetId, options);
7470
+ getMessageWidgetConfig(widgetId, orgId, options) {
7471
+ const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).getMessageWidgetConfig(widgetId, orgId, options);
7475
7472
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7476
7473
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7477
7474
  if (response.status >= 200 && response.status < 300) {
@@ -7486,12 +7483,12 @@ const MessageWidgetsApiFp = function (configuration) {
7486
7483
  /**
7487
7484
  *
7488
7485
  * @summary get message widgets configs for org and locale
7489
- * @param {string} value
7486
+ * @param {string} locale
7490
7487
  * @param {*} [options] Override http request option.
7491
7488
  * @throws {RequiredError}
7492
7489
  */
7493
- getMessageWidgetsConfigs(value, options) {
7494
- const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).getMessageWidgetsConfigs(value, options);
7490
+ getMessageWidgetsConfigs(locale, options) {
7491
+ const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).getMessageWidgetsConfigs(locale, options);
7495
7492
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7496
7493
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7497
7494
  if (response.status >= 200 && response.status < 300) {
@@ -7506,13 +7503,13 @@ const MessageWidgetsApiFp = function (configuration) {
7506
7503
  /**
7507
7504
  *
7508
7505
  * @summary update message widget config by widget id
7509
- * @param {MessageWidgetForm} body
7510
- * @param {string} value
7506
+ * @param {UpdateMessageWidgetForm} body
7507
+ * @param {string} widgetId
7511
7508
  * @param {*} [options] Override http request option.
7512
7509
  * @throws {RequiredError}
7513
7510
  */
7514
- updateMessageWidgetConfig(body, value, options) {
7515
- const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).updateMessageWidgetConfig(body, value, options);
7511
+ updateMessageWidgetConfig(body, widgetId, options) {
7512
+ const localVarFetchArgs = (0, exports.MessageWidgetsApiFetchParamCreator)(configuration).updateMessageWidgetConfig(body, widgetId, options);
7516
7513
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7517
7514
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7518
7515
  if (response.status >= 200 && response.status < 300) {
@@ -7536,55 +7533,54 @@ const MessageWidgetsApiFactory = function (configuration, fetch, basePath) {
7536
7533
  /**
7537
7534
  *
7538
7535
  * @summary post message widgets config by locale
7539
- * @param {MessageWidgetForm} body
7540
- * @param {string} value
7536
+ * @param {CreateMessageWidgetForm} body
7541
7537
  * @param {*} [options] Override http request option.
7542
7538
  * @throws {RequiredError}
7543
7539
  */
7544
- createMessageWidgetConfig(body, value, options) {
7545
- return (0, exports.MessageWidgetsApiFp)(configuration).createMessageWidgetConfig(body, value, options)(fetch, basePath);
7540
+ createMessageWidgetConfig(body, options) {
7541
+ return (0, exports.MessageWidgetsApiFp)(configuration).createMessageWidgetConfig(body, options)(fetch, basePath);
7546
7542
  },
7547
7543
  /**
7548
7544
  *
7549
7545
  * @summary delete message widget config by widget id
7550
- * @param {string} value
7546
+ * @param {string} widgetId
7551
7547
  * @param {*} [options] Override http request option.
7552
7548
  * @throws {RequiredError}
7553
7549
  */
7554
- deleteMessageWidgetConfig(value, options) {
7555
- return (0, exports.MessageWidgetsApiFp)(configuration).deleteMessageWidgetConfig(value, options)(fetch, basePath);
7550
+ deleteMessageWidgetConfig(widgetId, options) {
7551
+ return (0, exports.MessageWidgetsApiFp)(configuration).deleteMessageWidgetConfig(widgetId, options)(fetch, basePath);
7556
7552
  },
7557
7553
  /**
7558
7554
  *
7559
7555
  * @summary get message widget config
7560
- * @param {string} orgId
7561
7556
  * @param {string} widgetId
7557
+ * @param {string} orgId
7562
7558
  * @param {*} [options] Override http request option.
7563
7559
  * @throws {RequiredError}
7564
7560
  */
7565
- getMessageWidgetConfig(orgId, widgetId, options) {
7566
- return (0, exports.MessageWidgetsApiFp)(configuration).getMessageWidgetConfig(orgId, widgetId, options)(fetch, basePath);
7561
+ getMessageWidgetConfig(widgetId, orgId, options) {
7562
+ return (0, exports.MessageWidgetsApiFp)(configuration).getMessageWidgetConfig(widgetId, orgId, options)(fetch, basePath);
7567
7563
  },
7568
7564
  /**
7569
7565
  *
7570
7566
  * @summary get message widgets configs for org and locale
7571
- * @param {string} value
7567
+ * @param {string} locale
7572
7568
  * @param {*} [options] Override http request option.
7573
7569
  * @throws {RequiredError}
7574
7570
  */
7575
- getMessageWidgetsConfigs(value, options) {
7576
- return (0, exports.MessageWidgetsApiFp)(configuration).getMessageWidgetsConfigs(value, options)(fetch, basePath);
7571
+ getMessageWidgetsConfigs(locale, options) {
7572
+ return (0, exports.MessageWidgetsApiFp)(configuration).getMessageWidgetsConfigs(locale, options)(fetch, basePath);
7577
7573
  },
7578
7574
  /**
7579
7575
  *
7580
7576
  * @summary update message widget config by widget id
7581
- * @param {MessageWidgetForm} body
7582
- * @param {string} value
7577
+ * @param {UpdateMessageWidgetForm} body
7578
+ * @param {string} widgetId
7583
7579
  * @param {*} [options] Override http request option.
7584
7580
  * @throws {RequiredError}
7585
7581
  */
7586
- updateMessageWidgetConfig(body, value, options) {
7587
- return (0, exports.MessageWidgetsApiFp)(configuration).updateMessageWidgetConfig(body, value, options)(fetch, basePath);
7582
+ updateMessageWidgetConfig(body, widgetId, options) {
7583
+ return (0, exports.MessageWidgetsApiFp)(configuration).updateMessageWidgetConfig(body, widgetId, options)(fetch, basePath);
7588
7584
  },
7589
7585
  };
7590
7586
  };
@@ -7599,60 +7595,59 @@ class MessageWidgetsApi extends BaseAPI {
7599
7595
  /**
7600
7596
  *
7601
7597
  * @summary post message widgets config by locale
7602
- * @param {MessageWidgetForm} body
7603
- * @param {string} value
7598
+ * @param {CreateMessageWidgetForm} body
7604
7599
  * @param {*} [options] Override http request option.
7605
7600
  * @throws {RequiredError}
7606
7601
  * @memberof MessageWidgetsApi
7607
7602
  */
7608
- createMessageWidgetConfig(body, value, options) {
7609
- return (0, exports.MessageWidgetsApiFp)(this.configuration).createMessageWidgetConfig(body, value, options)(this.fetch, this.basePath);
7603
+ createMessageWidgetConfig(body, options) {
7604
+ return (0, exports.MessageWidgetsApiFp)(this.configuration).createMessageWidgetConfig(body, options)(this.fetch, this.basePath);
7610
7605
  }
7611
7606
  /**
7612
7607
  *
7613
7608
  * @summary delete message widget config by widget id
7614
- * @param {string} value
7609
+ * @param {string} widgetId
7615
7610
  * @param {*} [options] Override http request option.
7616
7611
  * @throws {RequiredError}
7617
7612
  * @memberof MessageWidgetsApi
7618
7613
  */
7619
- deleteMessageWidgetConfig(value, options) {
7620
- return (0, exports.MessageWidgetsApiFp)(this.configuration).deleteMessageWidgetConfig(value, options)(this.fetch, this.basePath);
7614
+ deleteMessageWidgetConfig(widgetId, options) {
7615
+ return (0, exports.MessageWidgetsApiFp)(this.configuration).deleteMessageWidgetConfig(widgetId, options)(this.fetch, this.basePath);
7621
7616
  }
7622
7617
  /**
7623
7618
  *
7624
7619
  * @summary get message widget config
7625
- * @param {string} orgId
7626
7620
  * @param {string} widgetId
7621
+ * @param {string} orgId
7627
7622
  * @param {*} [options] Override http request option.
7628
7623
  * @throws {RequiredError}
7629
7624
  * @memberof MessageWidgetsApi
7630
7625
  */
7631
- getMessageWidgetConfig(orgId, widgetId, options) {
7632
- return (0, exports.MessageWidgetsApiFp)(this.configuration).getMessageWidgetConfig(orgId, widgetId, options)(this.fetch, this.basePath);
7626
+ getMessageWidgetConfig(widgetId, orgId, options) {
7627
+ return (0, exports.MessageWidgetsApiFp)(this.configuration).getMessageWidgetConfig(widgetId, orgId, options)(this.fetch, this.basePath);
7633
7628
  }
7634
7629
  /**
7635
7630
  *
7636
7631
  * @summary get message widgets configs for org and locale
7637
- * @param {string} value
7632
+ * @param {string} locale
7638
7633
  * @param {*} [options] Override http request option.
7639
7634
  * @throws {RequiredError}
7640
7635
  * @memberof MessageWidgetsApi
7641
7636
  */
7642
- getMessageWidgetsConfigs(value, options) {
7643
- return (0, exports.MessageWidgetsApiFp)(this.configuration).getMessageWidgetsConfigs(value, options)(this.fetch, this.basePath);
7637
+ getMessageWidgetsConfigs(locale, options) {
7638
+ return (0, exports.MessageWidgetsApiFp)(this.configuration).getMessageWidgetsConfigs(locale, options)(this.fetch, this.basePath);
7644
7639
  }
7645
7640
  /**
7646
7641
  *
7647
7642
  * @summary update message widget config by widget id
7648
- * @param {MessageWidgetForm} body
7649
- * @param {string} value
7643
+ * @param {UpdateMessageWidgetForm} body
7644
+ * @param {string} widgetId
7650
7645
  * @param {*} [options] Override http request option.
7651
7646
  * @throws {RequiredError}
7652
7647
  * @memberof MessageWidgetsApi
7653
7648
  */
7654
- updateMessageWidgetConfig(body, value, options) {
7655
- return (0, exports.MessageWidgetsApiFp)(this.configuration).updateMessageWidgetConfig(body, value, options)(this.fetch, this.basePath);
7649
+ updateMessageWidgetConfig(body, widgetId, options) {
7650
+ return (0, exports.MessageWidgetsApiFp)(this.configuration).updateMessageWidgetConfig(body, widgetId, options)(this.fetch, this.basePath);
7656
7651
  }
7657
7652
  }
7658
7653
  exports.MessageWidgetsApi = MessageWidgetsApi;
@@ -11673,8 +11668,7 @@ const ProfanitiesApiFetchParamCreator = function (configuration) {
11673
11668
  if (orgId === null || orgId === undefined) {
11674
11669
  throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling getProfanities.');
11675
11670
  }
11676
- const localVarPath = `/profanities/{orgId}`
11677
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
11671
+ const localVarPath = `/profanities`;
11678
11672
  const localVarUrlObj = url.parse(localVarPath, true);
11679
11673
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
11680
11674
  const localVarHeaderParameter = {};
@@ -11693,6 +11687,9 @@ const ProfanitiesApiFetchParamCreator = function (configuration) {
11693
11687
  : configuration.apiKey;
11694
11688
  localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
11695
11689
  }
11690
+ if (orgId !== undefined) {
11691
+ localVarQueryParameter['orgId'] = orgId;
11692
+ }
11696
11693
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
11697
11694
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
11698
11695
  delete localVarUrlObj.search;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1075",
3
+ "version": "0.12.1077",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [