@closerplatform/spinner-openapi 0.12.11 → 0.12.14

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 +138 -0
  2. package/dist/api.js +163 -0
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -469,6 +469,74 @@ export interface AgentGroup {
469
469
  */
470
470
  advisers: Array<string>;
471
471
  }
472
+ /**
473
+ *
474
+ * @export
475
+ * @interface AgentGroupBatchPatchDto
476
+ */
477
+ export interface AgentGroupBatchPatchDto {
478
+ /**
479
+ *
480
+ * @type {string}
481
+ * @memberof AgentGroupBatchPatchDto
482
+ */
483
+ id: string;
484
+ /**
485
+ *
486
+ * @type {Array<string>}
487
+ * @memberof AgentGroupBatchPatchDto
488
+ */
489
+ tags?: Array<string>;
490
+ /**
491
+ *
492
+ * @type {Array<string>}
493
+ * @memberof AgentGroupBatchPatchDto
494
+ */
495
+ tagGroups?: Array<string>;
496
+ /**
497
+ *
498
+ * @type {Array<string>}
499
+ * @memberof AgentGroupBatchPatchDto
500
+ */
501
+ advisers?: Array<string>;
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof AgentGroupBatchPatchDto
506
+ */
507
+ name?: string;
508
+ }
509
+ /**
510
+ *
511
+ * @export
512
+ * @interface AgentGroupPatchDto
513
+ */
514
+ export interface AgentGroupPatchDto {
515
+ /**
516
+ *
517
+ * @type {Array<string>}
518
+ * @memberof AgentGroupPatchDto
519
+ */
520
+ tags?: Array<string>;
521
+ /**
522
+ *
523
+ * @type {Array<string>}
524
+ * @memberof AgentGroupPatchDto
525
+ */
526
+ tagGroups?: Array<string>;
527
+ /**
528
+ *
529
+ * @type {Array<string>}
530
+ * @memberof AgentGroupPatchDto
531
+ */
532
+ advisers?: Array<string>;
533
+ /**
534
+ *
535
+ * @type {string}
536
+ * @memberof AgentGroupPatchDto
537
+ */
538
+ name?: string;
539
+ }
472
540
  /**
473
541
  *
474
542
  * @export
@@ -6655,6 +6723,23 @@ export declare const AgentGroupsApiFetchParamCreator: (configuration?: Configura
6655
6723
  * @throws {RequiredError}
6656
6724
  */
6657
6725
  getAgentGroups(options?: any): FetchArgs;
6726
+ /**
6727
+ *
6728
+ * @summary patch agent group
6729
+ * @param {AgentGroupPatchDto} body
6730
+ * @param {string} agentGroupId
6731
+ * @param {*} [options] Override http request option.
6732
+ * @throws {RequiredError}
6733
+ */
6734
+ patchAgentGroup(body: AgentGroupPatchDto, agentGroupId: string, options?: any): FetchArgs;
6735
+ /**
6736
+ *
6737
+ * @summary patch agent groups
6738
+ * @param {Array<AgentGroupBatchPatchDto>} body
6739
+ * @param {*} [options] Override http request option.
6740
+ * @throws {RequiredError}
6741
+ */
6742
+ patchAgentGroups(body: Array<AgentGroupBatchPatchDto>, options?: any): FetchArgs;
6658
6743
  /**
6659
6744
  *
6660
6745
  * @summary update agent group assignments
@@ -6726,6 +6811,23 @@ export declare const AgentGroupsApiFp: (configuration?: Configuration) => {
6726
6811
  * @throws {RequiredError}
6727
6812
  */
6728
6813
  getAgentGroups(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<AgentGroup>>;
6814
+ /**
6815
+ *
6816
+ * @summary patch agent group
6817
+ * @param {AgentGroupPatchDto} body
6818
+ * @param {string} agentGroupId
6819
+ * @param {*} [options] Override http request option.
6820
+ * @throws {RequiredError}
6821
+ */
6822
+ patchAgentGroup(body: AgentGroupPatchDto, agentGroupId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AgentGroup>;
6823
+ /**
6824
+ *
6825
+ * @summary patch agent groups
6826
+ * @param {Array<AgentGroupBatchPatchDto>} body
6827
+ * @param {*} [options] Override http request option.
6828
+ * @throws {RequiredError}
6829
+ */
6830
+ patchAgentGroups(body: Array<AgentGroupBatchPatchDto>, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<AgentGroup>>;
6729
6831
  /**
6730
6832
  *
6731
6833
  * @summary update agent group assignments
@@ -6797,6 +6899,23 @@ export declare const AgentGroupsApiFactory: (configuration?: Configuration, fetc
6797
6899
  * @throws {RequiredError}
6798
6900
  */
6799
6901
  getAgentGroups(options?: any): Promise<AgentGroup[]>;
6902
+ /**
6903
+ *
6904
+ * @summary patch agent group
6905
+ * @param {AgentGroupPatchDto} body
6906
+ * @param {string} agentGroupId
6907
+ * @param {*} [options] Override http request option.
6908
+ * @throws {RequiredError}
6909
+ */
6910
+ patchAgentGroup(body: AgentGroupPatchDto, agentGroupId: string, options?: any): Promise<AgentGroup>;
6911
+ /**
6912
+ *
6913
+ * @summary patch agent groups
6914
+ * @param {Array<AgentGroupBatchPatchDto>} body
6915
+ * @param {*} [options] Override http request option.
6916
+ * @throws {RequiredError}
6917
+ */
6918
+ patchAgentGroups(body: Array<AgentGroupBatchPatchDto>, options?: any): Promise<AgentGroup[]>;
6800
6919
  /**
6801
6920
  *
6802
6921
  * @summary update agent group assignments
@@ -6874,6 +6993,25 @@ export declare class AgentGroupsApi extends BaseAPI {
6874
6993
  * @memberof AgentGroupsApi
6875
6994
  */
6876
6995
  getAgentGroups(options?: any): Promise<AgentGroup[]>;
6996
+ /**
6997
+ *
6998
+ * @summary patch agent group
6999
+ * @param {AgentGroupPatchDto} body
7000
+ * @param {string} agentGroupId
7001
+ * @param {*} [options] Override http request option.
7002
+ * @throws {RequiredError}
7003
+ * @memberof AgentGroupsApi
7004
+ */
7005
+ patchAgentGroup(body: AgentGroupPatchDto, agentGroupId: string, options?: any): Promise<AgentGroup>;
7006
+ /**
7007
+ *
7008
+ * @summary patch agent groups
7009
+ * @param {Array<AgentGroupBatchPatchDto>} body
7010
+ * @param {*} [options] Override http request option.
7011
+ * @throws {RequiredError}
7012
+ * @memberof AgentGroupsApi
7013
+ */
7014
+ patchAgentGroups(body: Array<AgentGroupBatchPatchDto>, options?: any): Promise<AgentGroup[]>;
6877
7015
  /**
6878
7016
  *
6879
7017
  * @summary update agent group assignments
package/dist/api.js CHANGED
@@ -459,6 +459,84 @@ exports.AgentGroupsApiFetchParamCreator = function (configuration) {
459
459
  options: localVarRequestOptions,
460
460
  };
461
461
  },
462
+ /**
463
+ *
464
+ * @summary patch agent group
465
+ * @param {AgentGroupPatchDto} body
466
+ * @param {string} agentGroupId
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ patchAgentGroup(body, agentGroupId, options = {}) {
471
+ // verify required parameter 'body' is not null or undefined
472
+ if (body === null || body === undefined) {
473
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchAgentGroup.');
474
+ }
475
+ // verify required parameter 'agentGroupId' is not null or undefined
476
+ if (agentGroupId === null || agentGroupId === undefined) {
477
+ throw new RequiredError('agentGroupId', 'Required parameter agentGroupId was null or undefined when calling patchAgentGroup.');
478
+ }
479
+ const localVarPath = `/agent-groups/{agentGroupId}`
480
+ .replace(`{${"agentGroupId"}}`, encodeURIComponent(String(agentGroupId)));
481
+ const localVarUrlObj = url.parse(localVarPath, true);
482
+ const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
483
+ const localVarHeaderParameter = {};
484
+ const localVarQueryParameter = {};
485
+ // authentication apiKey required
486
+ if (configuration && configuration.apiKey) {
487
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
488
+ ? configuration.apiKey("X-Api-Key")
489
+ : configuration.apiKey;
490
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
491
+ }
492
+ localVarHeaderParameter['Content-Type'] = 'application/json';
493
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
494
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
495
+ delete localVarUrlObj.search;
496
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
497
+ const needsSerialization = ("AgentGroupPatchDto" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
498
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
499
+ return {
500
+ url: url.format(localVarUrlObj),
501
+ options: localVarRequestOptions,
502
+ };
503
+ },
504
+ /**
505
+ *
506
+ * @summary patch agent groups
507
+ * @param {Array<AgentGroupBatchPatchDto>} body
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ patchAgentGroups(body, options = {}) {
512
+ // verify required parameter 'body' is not null or undefined
513
+ if (body === null || body === undefined) {
514
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchAgentGroups.');
515
+ }
516
+ const localVarPath = `/agent-groups`;
517
+ const localVarUrlObj = url.parse(localVarPath, true);
518
+ const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
519
+ const localVarHeaderParameter = {};
520
+ const localVarQueryParameter = {};
521
+ // authentication apiKey required
522
+ if (configuration && configuration.apiKey) {
523
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
524
+ ? configuration.apiKey("X-Api-Key")
525
+ : configuration.apiKey;
526
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
527
+ }
528
+ localVarHeaderParameter['Content-Type'] = 'application/json';
529
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
530
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
531
+ delete localVarUrlObj.search;
532
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
533
+ const needsSerialization = ("Array&lt;AgentGroupBatchPatchDto&gt;" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
534
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
535
+ return {
536
+ url: url.format(localVarUrlObj),
537
+ options: localVarRequestOptions,
538
+ };
539
+ },
462
540
  /**
463
541
  *
464
542
  * @summary update agent group assignments
@@ -702,6 +780,47 @@ exports.AgentGroupsApiFp = function (configuration) {
702
780
  });
703
781
  };
704
782
  },
783
+ /**
784
+ *
785
+ * @summary patch agent group
786
+ * @param {AgentGroupPatchDto} body
787
+ * @param {string} agentGroupId
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ patchAgentGroup(body, agentGroupId, options) {
792
+ const localVarFetchArgs = exports.AgentGroupsApiFetchParamCreator(configuration).patchAgentGroup(body, agentGroupId, options);
793
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
794
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
795
+ if (response.status >= 200 && response.status < 300) {
796
+ return response.json();
797
+ }
798
+ else {
799
+ throw response;
800
+ }
801
+ });
802
+ };
803
+ },
804
+ /**
805
+ *
806
+ * @summary patch agent groups
807
+ * @param {Array<AgentGroupBatchPatchDto>} body
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ patchAgentGroups(body, options) {
812
+ const localVarFetchArgs = exports.AgentGroupsApiFetchParamCreator(configuration).patchAgentGroups(body, options);
813
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
814
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
815
+ if (response.status >= 200 && response.status < 300) {
816
+ return response.json();
817
+ }
818
+ else {
819
+ throw response;
820
+ }
821
+ });
822
+ };
823
+ },
705
824
  /**
706
825
  *
707
826
  * @summary update agent group assignments
@@ -831,6 +950,27 @@ exports.AgentGroupsApiFactory = function (configuration, fetch, basePath) {
831
950
  getAgentGroups(options) {
832
951
  return exports.AgentGroupsApiFp(configuration).getAgentGroups(options)(fetch, basePath);
833
952
  },
953
+ /**
954
+ *
955
+ * @summary patch agent group
956
+ * @param {AgentGroupPatchDto} body
957
+ * @param {string} agentGroupId
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ */
961
+ patchAgentGroup(body, agentGroupId, options) {
962
+ return exports.AgentGroupsApiFp(configuration).patchAgentGroup(body, agentGroupId, options)(fetch, basePath);
963
+ },
964
+ /**
965
+ *
966
+ * @summary patch agent groups
967
+ * @param {Array<AgentGroupBatchPatchDto>} body
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ */
971
+ patchAgentGroups(body, options) {
972
+ return exports.AgentGroupsApiFp(configuration).patchAgentGroups(body, options)(fetch, basePath);
973
+ },
834
974
  /**
835
975
  *
836
976
  * @summary update agent group assignments
@@ -925,6 +1065,29 @@ class AgentGroupsApi extends BaseAPI {
925
1065
  getAgentGroups(options) {
926
1066
  return exports.AgentGroupsApiFp(this.configuration).getAgentGroups(options)(this.fetch, this.basePath);
927
1067
  }
1068
+ /**
1069
+ *
1070
+ * @summary patch agent group
1071
+ * @param {AgentGroupPatchDto} body
1072
+ * @param {string} agentGroupId
1073
+ * @param {*} [options] Override http request option.
1074
+ * @throws {RequiredError}
1075
+ * @memberof AgentGroupsApi
1076
+ */
1077
+ patchAgentGroup(body, agentGroupId, options) {
1078
+ return exports.AgentGroupsApiFp(this.configuration).patchAgentGroup(body, agentGroupId, options)(this.fetch, this.basePath);
1079
+ }
1080
+ /**
1081
+ *
1082
+ * @summary patch agent groups
1083
+ * @param {Array<AgentGroupBatchPatchDto>} body
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ * @memberof AgentGroupsApi
1087
+ */
1088
+ patchAgentGroups(body, options) {
1089
+ return exports.AgentGroupsApiFp(this.configuration).patchAgentGroups(body, options)(this.fetch, this.basePath);
1090
+ }
928
1091
  /**
929
1092
  *
930
1093
  * @summary update agent group assignments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.11",
3
+ "version": "0.12.14",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [