@closerplatform/spinner-openapi 0.12.978 → 0.12.981

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/dist/api.d.ts CHANGED
@@ -321,7 +321,7 @@ export interface AgentCtx {
321
321
  * @type {string}
322
322
  * @memberof AgentCtx
323
323
  */
324
- email: string;
324
+ orgRole: string;
325
325
  /**
326
326
  *
327
327
  * @type {string}
@@ -334,18 +334,12 @@ export interface AgentCtx {
334
334
  * @memberof AgentCtx
335
335
  */
336
336
  lastName: string;
337
- /**
338
- *
339
- * @type {Phone}
340
- * @memberof AgentCtx
341
- */
342
- phone?: Phone;
343
337
  /**
344
338
  *
345
339
  * @type {string}
346
340
  * @memberof AgentCtx
347
341
  */
348
- avatarToken?: string;
342
+ email: string;
349
343
  /**
350
344
  *
351
345
  * @type {string}
@@ -354,22 +348,16 @@ export interface AgentCtx {
354
348
  pendingEmail?: string;
355
349
  /**
356
350
  *
357
- * @type {AppPresence}
351
+ * @type {Phone}
358
352
  * @memberof AgentCtx
359
353
  */
360
- presence: AppPresence;
354
+ phone?: Phone;
361
355
  /**
362
356
  *
363
357
  * @type {string}
364
358
  * @memberof AgentCtx
365
359
  */
366
- unavailabilityReason?: string;
367
- /**
368
- *
369
- * @type {UserRole}
370
- * @memberof AgentCtx
371
- */
372
- role: UserRole;
360
+ importedCalendar?: string;
373
361
  /**
374
362
  *
375
363
  * @type {number}
@@ -381,7 +369,7 @@ export interface AgentCtx {
381
369
  * @type {string}
382
370
  * @memberof AgentCtx
383
371
  */
384
- importedCalendar?: string;
372
+ avatarToken?: string;
385
373
  /**
386
374
  *
387
375
  * @type {string}
@@ -390,28 +378,34 @@ export interface AgentCtx {
390
378
  closerCustomerApiKey?: string;
391
379
  /**
392
380
  *
393
- * @type {Array<string>}
381
+ * @type {AppPresence}
394
382
  * @memberof AgentCtx
395
383
  */
396
- groups?: Array<string>;
384
+ presence: AppPresence;
397
385
  /**
398
386
  *
399
387
  * @type {string}
400
388
  * @memberof AgentCtx
401
389
  */
402
- orgRole: string;
390
+ unavailabilityReason?: string;
403
391
  /**
404
392
  *
405
393
  * @type {Array<string>}
406
394
  * @memberof AgentCtx
407
395
  */
408
- tagGroups: Array<string>;
396
+ groups: Array<string>;
409
397
  /**
410
398
  *
411
399
  * @type {Array<string>}
412
400
  * @memberof AgentCtx
413
401
  */
414
402
  tags: Array<string>;
403
+ /**
404
+ *
405
+ * @type {Array<string>}
406
+ * @memberof AgentCtx
407
+ */
408
+ tagGroups: Array<string>;
415
409
  }
416
410
  /**
417
411
  *
@@ -617,25 +611,25 @@ export interface AgentProfile {
617
611
  * @type {string}
618
612
  * @memberof AgentProfile
619
613
  */
620
- firstName: string;
614
+ orgRole: string;
621
615
  /**
622
616
  *
623
- * @type {string}
617
+ * @type {boolean}
624
618
  * @memberof AgentProfile
625
619
  */
626
- lastName: string;
620
+ isActive: boolean;
627
621
  /**
628
622
  *
629
623
  * @type {string}
630
624
  * @memberof AgentProfile
631
625
  */
632
- avatarToken?: string;
626
+ firstName: string;
633
627
  /**
634
628
  *
635
629
  * @type {string}
636
630
  * @memberof AgentProfile
637
631
  */
638
- pendingEmail?: string;
632
+ lastName: string;
639
633
  /**
640
634
  *
641
635
  * @type {string}
@@ -644,70 +638,70 @@ export interface AgentProfile {
644
638
  email?: string;
645
639
  /**
646
640
  *
647
- * @type {AppPresence}
641
+ * @type {string}
648
642
  * @memberof AgentProfile
649
643
  */
650
- presence: AppPresence;
644
+ pendingEmail?: string;
651
645
  /**
652
646
  *
653
- * @type {boolean}
647
+ * @type {number}
654
648
  * @memberof AgentProfile
655
649
  */
656
- isBot: boolean;
650
+ validFrom?: number;
657
651
  /**
658
652
  *
659
653
  * @type {number}
660
654
  * @memberof AgentProfile
661
655
  */
662
- autoAssignedLimit?: number;
656
+ validTo?: number;
663
657
  /**
664
658
  *
665
- * @type {boolean}
659
+ * @type {number}
666
660
  * @memberof AgentProfile
667
661
  */
668
- isActive: boolean;
662
+ autoAssignedLimit?: number;
669
663
  /**
670
664
  *
671
- * @type {UserRole}
665
+ * @type {string}
672
666
  * @memberof AgentProfile
673
667
  */
674
- role?: UserRole;
668
+ avatarToken?: string;
675
669
  /**
676
670
  *
677
- * @type {Array<string>}
671
+ * @type {AppPresence}
678
672
  * @memberof AgentProfile
679
673
  */
680
- groups: Array<string>;
674
+ presence: AppPresence;
681
675
  /**
682
676
  *
683
- * @type {string}
677
+ * @type {boolean}
684
678
  * @memberof AgentProfile
685
679
  */
686
- orgRole: string;
680
+ isBot: boolean;
687
681
  /**
688
682
  *
689
- * @type {Array<string>}
683
+ * @type {UserRole}
690
684
  * @memberof AgentProfile
691
685
  */
692
- tags: Array<string>;
686
+ role: UserRole;
693
687
  /**
694
688
  *
695
689
  * @type {Array<string>}
696
690
  * @memberof AgentProfile
697
691
  */
698
- tagGroups: Array<string>;
692
+ groups: Array<string>;
699
693
  /**
700
694
  *
701
- * @type {number}
695
+ * @type {Array<string>}
702
696
  * @memberof AgentProfile
703
697
  */
704
- validFrom?: number;
698
+ tags: Array<string>;
705
699
  /**
706
700
  *
707
- * @type {number}
701
+ * @type {Array<string>}
708
702
  * @memberof AgentProfile
709
703
  */
710
- validTo?: number;
704
+ tagGroups: Array<string>;
711
705
  }
712
706
  /**
713
707
  *
@@ -828,8 +822,8 @@ export declare enum AppPermission {
828
822
  export declare enum AppPresence {
829
823
  Available = "available",
830
824
  Away = "away",
831
- Unavailable = "unavailable",
832
- Unready = "unready"
825
+ Unready = "unready",
826
+ Unavailable = "unavailable"
833
827
  }
834
828
  /**
835
829
  *
@@ -7873,11 +7867,10 @@ export declare const BotsApiFetchParamCreator: (configuration?: Configuration) =
7873
7867
  /**
7874
7868
  *
7875
7869
  * @summary delete bot avatar
7876
- * @param {ChangeBotTypeForm} body
7877
7870
  * @param {*} [options] Override http request option.
7878
7871
  * @throws {RequiredError}
7879
7872
  */
7880
- deleteBotAvatar(body: ChangeBotTypeForm, options?: any): FetchArgs;
7873
+ deleteBotAvatar(options?: any): FetchArgs;
7881
7874
  /**
7882
7875
  *
7883
7876
  * @summary get bot dto
@@ -7956,11 +7949,10 @@ export declare const BotsApiFp: (configuration?: Configuration) => {
7956
7949
  /**
7957
7950
  *
7958
7951
  * @summary delete bot avatar
7959
- * @param {ChangeBotTypeForm} body
7960
7952
  * @param {*} [options] Override http request option.
7961
7953
  * @throws {RequiredError}
7962
7954
  */
7963
- deleteBotAvatar(body: ChangeBotTypeForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
7955
+ deleteBotAvatar(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
7964
7956
  /**
7965
7957
  *
7966
7958
  * @summary get bot dto
@@ -8039,11 +8031,10 @@ export declare const BotsApiFactory: (configuration?: Configuration, fetch?: Fet
8039
8031
  /**
8040
8032
  *
8041
8033
  * @summary delete bot avatar
8042
- * @param {ChangeBotTypeForm} body
8043
8034
  * @param {*} [options] Override http request option.
8044
8035
  * @throws {RequiredError}
8045
8036
  */
8046
- deleteBotAvatar(body: ChangeBotTypeForm, options?: any): Promise<Response>;
8037
+ deleteBotAvatar(options?: any): Promise<Response>;
8047
8038
  /**
8048
8039
  *
8049
8040
  * @summary get bot dto
@@ -8127,12 +8118,11 @@ export declare class BotsApi extends BaseAPI {
8127
8118
  /**
8128
8119
  *
8129
8120
  * @summary delete bot avatar
8130
- * @param {ChangeBotTypeForm} body
8131
8121
  * @param {*} [options] Override http request option.
8132
8122
  * @throws {RequiredError}
8133
8123
  * @memberof BotsApi
8134
8124
  */
8135
- deleteBotAvatar(body: ChangeBotTypeForm, options?: any): Promise<Response>;
8125
+ deleteBotAvatar(options?: any): Promise<Response>;
8136
8126
  /**
8137
8127
  *
8138
8128
  * @summary get bot dto
package/dist/api.js CHANGED
@@ -124,8 +124,8 @@ var AppPresence;
124
124
  (function (AppPresence) {
125
125
  AppPresence["Available"] = "available";
126
126
  AppPresence["Away"] = "away";
127
- AppPresence["Unavailable"] = "unavailable";
128
127
  AppPresence["Unready"] = "unready";
128
+ AppPresence["Unavailable"] = "unavailable";
129
129
  })(AppPresence = exports.AppPresence || (exports.AppPresence = {}));
130
130
  /**
131
131
  *
@@ -2123,15 +2123,10 @@ const BotsApiFetchParamCreator = function (configuration) {
2123
2123
  /**
2124
2124
  *
2125
2125
  * @summary delete bot avatar
2126
- * @param {ChangeBotTypeForm} body
2127
2126
  * @param {*} [options] Override http request option.
2128
2127
  * @throws {RequiredError}
2129
2128
  */
2130
- deleteBotAvatar(body, options = {}) {
2131
- // verify required parameter 'body' is not null or undefined
2132
- if (body === null || body === undefined) {
2133
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteBotAvatar.');
2134
- }
2129
+ deleteBotAvatar(options = {}) {
2135
2130
  const localVarPath = `/bots/avatar`;
2136
2131
  const localVarUrlObj = url.parse(localVarPath, true);
2137
2132
  const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
@@ -2144,13 +2139,10 @@ const BotsApiFetchParamCreator = function (configuration) {
2144
2139
  : configuration.apiKey;
2145
2140
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
2146
2141
  }
2147
- localVarHeaderParameter['Content-Type'] = 'application/json';
2148
2142
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2149
2143
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2150
2144
  delete localVarUrlObj.search;
2151
2145
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2152
- const needsSerialization = ("ChangeBotTypeForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2153
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
2154
2146
  return {
2155
2147
  url: url.format(localVarUrlObj),
2156
2148
  options: localVarRequestOptions,
@@ -2418,12 +2410,11 @@ const BotsApiFp = function (configuration) {
2418
2410
  /**
2419
2411
  *
2420
2412
  * @summary delete bot avatar
2421
- * @param {ChangeBotTypeForm} body
2422
2413
  * @param {*} [options] Override http request option.
2423
2414
  * @throws {RequiredError}
2424
2415
  */
2425
- deleteBotAvatar(body, options) {
2426
- const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).deleteBotAvatar(body, options);
2416
+ deleteBotAvatar(options) {
2417
+ const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).deleteBotAvatar(options);
2427
2418
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
2428
2419
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
2429
2420
  if (response.status >= 200 && response.status < 300) {
@@ -2594,12 +2585,11 @@ const BotsApiFactory = function (configuration, fetch, basePath) {
2594
2585
  /**
2595
2586
  *
2596
2587
  * @summary delete bot avatar
2597
- * @param {ChangeBotTypeForm} body
2598
2588
  * @param {*} [options] Override http request option.
2599
2589
  * @throws {RequiredError}
2600
2590
  */
2601
- deleteBotAvatar(body, options) {
2602
- return (0, exports.BotsApiFp)(configuration).deleteBotAvatar(body, options)(fetch, basePath);
2591
+ deleteBotAvatar(options) {
2592
+ return (0, exports.BotsApiFp)(configuration).deleteBotAvatar(options)(fetch, basePath);
2603
2593
  },
2604
2594
  /**
2605
2595
  *
@@ -2704,13 +2694,12 @@ class BotsApi extends BaseAPI {
2704
2694
  /**
2705
2695
  *
2706
2696
  * @summary delete bot avatar
2707
- * @param {ChangeBotTypeForm} body
2708
2697
  * @param {*} [options] Override http request option.
2709
2698
  * @throws {RequiredError}
2710
2699
  * @memberof BotsApi
2711
2700
  */
2712
- deleteBotAvatar(body, options) {
2713
- return (0, exports.BotsApiFp)(this.configuration).deleteBotAvatar(body, options)(this.fetch, this.basePath);
2701
+ deleteBotAvatar(options) {
2702
+ return (0, exports.BotsApiFp)(this.configuration).deleteBotAvatar(options)(this.fetch, this.basePath);
2714
2703
  }
2715
2704
  /**
2716
2705
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.978",
3
+ "version": "0.12.981",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [