@scout9/admin 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/api.js CHANGED
@@ -805,6 +805,250 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
805
805
  options: localVarRequestOptions,
806
806
  };
807
807
  },
808
+ /**
809
+ *
810
+ * @summary Gets a customer group
811
+ * @param {string} id
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ */
815
+ customerGroup: async (id, options = {}) => {
816
+ // verify required parameter 'id' is not null or undefined
817
+ (0, common_1.assertParamExists)('customerGroup', 'id', id);
818
+ const localVarPath = `/v1-customerGroup`;
819
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
820
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
821
+ let baseOptions;
822
+ if (configuration) {
823
+ baseOptions = configuration.baseOptions;
824
+ }
825
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
826
+ const localVarHeaderParameter = {};
827
+ const localVarQueryParameter = {};
828
+ if (id !== undefined) {
829
+ localVarQueryParameter['id'] = id;
830
+ }
831
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
833
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
834
+ return {
835
+ url: (0, common_1.toPathString)(localVarUrlObj),
836
+ options: localVarRequestOptions,
837
+ };
838
+ },
839
+ /**
840
+ *
841
+ * @summary Creates a new customer group
842
+ * @param {CreateCustomerGroupRequest} createCustomerGroupRequest
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ customerGroupCreate: async (createCustomerGroupRequest, options = {}) => {
847
+ // verify required parameter 'createCustomerGroupRequest' is not null or undefined
848
+ (0, common_1.assertParamExists)('customerGroupCreate', 'createCustomerGroupRequest', createCustomerGroupRequest);
849
+ const localVarPath = `/v1-customerGroup`;
850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
851
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
852
+ let baseOptions;
853
+ if (configuration) {
854
+ baseOptions = configuration.baseOptions;
855
+ }
856
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
857
+ const localVarHeaderParameter = {};
858
+ const localVarQueryParameter = {};
859
+ localVarHeaderParameter['Content-Type'] = 'application/json';
860
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
862
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
863
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerGroupRequest, localVarRequestOptions, configuration);
864
+ return {
865
+ url: (0, common_1.toPathString)(localVarUrlObj),
866
+ options: localVarRequestOptions,
867
+ };
868
+ },
869
+ /**
870
+ *
871
+ * @summary Deletes a customer group
872
+ * @param {string} id
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ */
876
+ customerGroupDelete: async (id, options = {}) => {
877
+ // verify required parameter 'id' is not null or undefined
878
+ (0, common_1.assertParamExists)('customerGroupDelete', 'id', id);
879
+ const localVarPath = `/v1-customerGroup`;
880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
881
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
882
+ let baseOptions;
883
+ if (configuration) {
884
+ baseOptions = configuration.baseOptions;
885
+ }
886
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
887
+ const localVarHeaderParameter = {};
888
+ const localVarQueryParameter = {};
889
+ if (id !== undefined) {
890
+ localVarQueryParameter['id'] = id;
891
+ }
892
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
893
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
894
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
895
+ return {
896
+ url: (0, common_1.toPathString)(localVarUrlObj),
897
+ options: localVarRequestOptions,
898
+ };
899
+ },
900
+ /**
901
+ *
902
+ * @summary Updates a customer group
903
+ * @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
904
+ * @param {*} [options] Override http request option.
905
+ * @throws {RequiredError}
906
+ */
907
+ customerGroupUpdate: async (updateCustomerGroupRequest, options = {}) => {
908
+ // verify required parameter 'updateCustomerGroupRequest' is not null or undefined
909
+ (0, common_1.assertParamExists)('customerGroupUpdate', 'updateCustomerGroupRequest', updateCustomerGroupRequest);
910
+ const localVarPath = `/v1-customerGroup`;
911
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
912
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
913
+ let baseOptions;
914
+ if (configuration) {
915
+ baseOptions = configuration.baseOptions;
916
+ }
917
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
918
+ const localVarHeaderParameter = {};
919
+ const localVarQueryParameter = {};
920
+ localVarHeaderParameter['Content-Type'] = 'application/json';
921
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
922
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
923
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
924
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerGroupRequest, localVarRequestOptions, configuration);
925
+ return {
926
+ url: (0, common_1.toPathString)(localVarUrlObj),
927
+ options: localVarRequestOptions,
928
+ };
929
+ },
930
+ /**
931
+ *
932
+ * @summary Gets all or specific set of customer groups
933
+ * @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
934
+ * @param {Array<string>} [id]
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ customerGroups: async (q, id, options = {}) => {
939
+ const localVarPath = `/v1-customerGroups`;
940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
941
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
942
+ let baseOptions;
943
+ if (configuration) {
944
+ baseOptions = configuration.baseOptions;
945
+ }
946
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
947
+ const localVarHeaderParameter = {};
948
+ const localVarQueryParameter = {};
949
+ if (q !== undefined) {
950
+ localVarQueryParameter['q'] = q;
951
+ }
952
+ if (id) {
953
+ localVarQueryParameter['id'] = id;
954
+ }
955
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
956
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
957
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
958
+ return {
959
+ url: (0, common_1.toPathString)(localVarUrlObj),
960
+ options: localVarRequestOptions,
961
+ };
962
+ },
963
+ /**
964
+ *
965
+ * @summary Creates new customer groups
966
+ * @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ customerGroupsCreate: async (createCustomerGroupsRequest, options = {}) => {
971
+ // verify required parameter 'createCustomerGroupsRequest' is not null or undefined
972
+ (0, common_1.assertParamExists)('customerGroupsCreate', 'createCustomerGroupsRequest', createCustomerGroupsRequest);
973
+ const localVarPath = `/v1-customerGroups`;
974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
975
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
976
+ let baseOptions;
977
+ if (configuration) {
978
+ baseOptions = configuration.baseOptions;
979
+ }
980
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
981
+ const localVarHeaderParameter = {};
982
+ const localVarQueryParameter = {};
983
+ localVarHeaderParameter['Content-Type'] = 'application/json';
984
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
985
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
986
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
987
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerGroupsRequest, localVarRequestOptions, configuration);
988
+ return {
989
+ url: (0, common_1.toPathString)(localVarUrlObj),
990
+ options: localVarRequestOptions,
991
+ };
992
+ },
993
+ /**
994
+ *
995
+ * @summary Deletes multiple customer groups
996
+ * @param {Array<string>} [id]
997
+ * @param {*} [options] Override http request option.
998
+ * @throws {RequiredError}
999
+ */
1000
+ customerGroupsDelete: async (id, options = {}) => {
1001
+ const localVarPath = `/v1-customerGroups`;
1002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1003
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1004
+ let baseOptions;
1005
+ if (configuration) {
1006
+ baseOptions = configuration.baseOptions;
1007
+ }
1008
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1009
+ const localVarHeaderParameter = {};
1010
+ const localVarQueryParameter = {};
1011
+ if (id) {
1012
+ localVarQueryParameter['id'] = id;
1013
+ }
1014
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1017
+ return {
1018
+ url: (0, common_1.toPathString)(localVarUrlObj),
1019
+ options: localVarRequestOptions,
1020
+ };
1021
+ },
1022
+ /**
1023
+ *
1024
+ * @summary Updates multiple customer groups
1025
+ * @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ customerGroupsUpdate: async (updateCustomerGroupsRequest, options = {}) => {
1030
+ // verify required parameter 'updateCustomerGroupsRequest' is not null or undefined
1031
+ (0, common_1.assertParamExists)('customerGroupsUpdate', 'updateCustomerGroupsRequest', updateCustomerGroupsRequest);
1032
+ const localVarPath = `/v1-customerGroups`;
1033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1034
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1035
+ let baseOptions;
1036
+ if (configuration) {
1037
+ baseOptions = configuration.baseOptions;
1038
+ }
1039
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1040
+ const localVarHeaderParameter = {};
1041
+ const localVarQueryParameter = {};
1042
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1043
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1044
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1045
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1046
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerGroupsRequest, localVarRequestOptions, configuration);
1047
+ return {
1048
+ url: (0, common_1.toPathString)(localVarUrlObj),
1049
+ options: localVarRequestOptions,
1050
+ };
1051
+ },
808
1052
  /**
809
1053
  *
810
1054
  * @summary Updates a customer
@@ -1867,6 +2111,95 @@ const Scout9ApiFp = function (configuration) {
1867
2111
  const localVarAxiosArgs = await localVarAxiosParamCreator.customerDelete(id, options);
1868
2112
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1869
2113
  },
2114
+ /**
2115
+ *
2116
+ * @summary Gets a customer group
2117
+ * @param {string} id
2118
+ * @param {*} [options] Override http request option.
2119
+ * @throws {RequiredError}
2120
+ */
2121
+ async customerGroup(id, options) {
2122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroup(id, options);
2123
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2124
+ },
2125
+ /**
2126
+ *
2127
+ * @summary Creates a new customer group
2128
+ * @param {CreateCustomerGroupRequest} createCustomerGroupRequest
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ */
2132
+ async customerGroupCreate(createCustomerGroupRequest, options) {
2133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupCreate(createCustomerGroupRequest, options);
2134
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2135
+ },
2136
+ /**
2137
+ *
2138
+ * @summary Deletes a customer group
2139
+ * @param {string} id
2140
+ * @param {*} [options] Override http request option.
2141
+ * @throws {RequiredError}
2142
+ */
2143
+ async customerGroupDelete(id, options) {
2144
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupDelete(id, options);
2145
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2146
+ },
2147
+ /**
2148
+ *
2149
+ * @summary Updates a customer group
2150
+ * @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ async customerGroupUpdate(updateCustomerGroupRequest, options) {
2155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupUpdate(updateCustomerGroupRequest, options);
2156
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2157
+ },
2158
+ /**
2159
+ *
2160
+ * @summary Gets all or specific set of customer groups
2161
+ * @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
2162
+ * @param {Array<string>} [id]
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ */
2166
+ async customerGroups(q, id, options) {
2167
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroups(q, id, options);
2168
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2169
+ },
2170
+ /**
2171
+ *
2172
+ * @summary Creates new customer groups
2173
+ * @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ */
2177
+ async customerGroupsCreate(createCustomerGroupsRequest, options) {
2178
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsCreate(createCustomerGroupsRequest, options);
2179
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2180
+ },
2181
+ /**
2182
+ *
2183
+ * @summary Deletes multiple customer groups
2184
+ * @param {Array<string>} [id]
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ */
2188
+ async customerGroupsDelete(id, options) {
2189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsDelete(id, options);
2190
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2191
+ },
2192
+ /**
2193
+ *
2194
+ * @summary Updates multiple customer groups
2195
+ * @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
2196
+ * @param {*} [options] Override http request option.
2197
+ * @throws {RequiredError}
2198
+ */
2199
+ async customerGroupsUpdate(updateCustomerGroupsRequest, options) {
2200
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsUpdate(updateCustomerGroupsRequest, options);
2201
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2202
+ },
1870
2203
  /**
1871
2204
  *
1872
2205
  * @summary Updates a customer
@@ -2399,6 +2732,87 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
2399
2732
  customerDelete(id, options) {
2400
2733
  return localVarFp.customerDelete(id, options).then((request) => request(axios, basePath));
2401
2734
  },
2735
+ /**
2736
+ *
2737
+ * @summary Gets a customer group
2738
+ * @param {string} id
2739
+ * @param {*} [options] Override http request option.
2740
+ * @throws {RequiredError}
2741
+ */
2742
+ customerGroup(id, options) {
2743
+ return localVarFp.customerGroup(id, options).then((request) => request(axios, basePath));
2744
+ },
2745
+ /**
2746
+ *
2747
+ * @summary Creates a new customer group
2748
+ * @param {CreateCustomerGroupRequest} createCustomerGroupRequest
2749
+ * @param {*} [options] Override http request option.
2750
+ * @throws {RequiredError}
2751
+ */
2752
+ customerGroupCreate(createCustomerGroupRequest, options) {
2753
+ return localVarFp.customerGroupCreate(createCustomerGroupRequest, options).then((request) => request(axios, basePath));
2754
+ },
2755
+ /**
2756
+ *
2757
+ * @summary Deletes a customer group
2758
+ * @param {string} id
2759
+ * @param {*} [options] Override http request option.
2760
+ * @throws {RequiredError}
2761
+ */
2762
+ customerGroupDelete(id, options) {
2763
+ return localVarFp.customerGroupDelete(id, options).then((request) => request(axios, basePath));
2764
+ },
2765
+ /**
2766
+ *
2767
+ * @summary Updates a customer group
2768
+ * @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
2769
+ * @param {*} [options] Override http request option.
2770
+ * @throws {RequiredError}
2771
+ */
2772
+ customerGroupUpdate(updateCustomerGroupRequest, options) {
2773
+ return localVarFp.customerGroupUpdate(updateCustomerGroupRequest, options).then((request) => request(axios, basePath));
2774
+ },
2775
+ /**
2776
+ *
2777
+ * @summary Gets all or specific set of customer groups
2778
+ * @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
2779
+ * @param {Array<string>} [id]
2780
+ * @param {*} [options] Override http request option.
2781
+ * @throws {RequiredError}
2782
+ */
2783
+ customerGroups(q, id, options) {
2784
+ return localVarFp.customerGroups(q, id, options).then((request) => request(axios, basePath));
2785
+ },
2786
+ /**
2787
+ *
2788
+ * @summary Creates new customer groups
2789
+ * @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
2790
+ * @param {*} [options] Override http request option.
2791
+ * @throws {RequiredError}
2792
+ */
2793
+ customerGroupsCreate(createCustomerGroupsRequest, options) {
2794
+ return localVarFp.customerGroupsCreate(createCustomerGroupsRequest, options).then((request) => request(axios, basePath));
2795
+ },
2796
+ /**
2797
+ *
2798
+ * @summary Deletes multiple customer groups
2799
+ * @param {Array<string>} [id]
2800
+ * @param {*} [options] Override http request option.
2801
+ * @throws {RequiredError}
2802
+ */
2803
+ customerGroupsDelete(id, options) {
2804
+ return localVarFp.customerGroupsDelete(id, options).then((request) => request(axios, basePath));
2805
+ },
2806
+ /**
2807
+ *
2808
+ * @summary Updates multiple customer groups
2809
+ * @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
2810
+ * @param {*} [options] Override http request option.
2811
+ * @throws {RequiredError}
2812
+ */
2813
+ customerGroupsUpdate(updateCustomerGroupsRequest, options) {
2814
+ return localVarFp.customerGroupsUpdate(updateCustomerGroupsRequest, options).then((request) => request(axios, basePath));
2815
+ },
2402
2816
  /**
2403
2817
  *
2404
2818
  * @summary Updates a customer
@@ -2928,6 +3342,95 @@ class Scout9Api extends base_1.BaseAPI {
2928
3342
  customerDelete(id, options) {
2929
3343
  return (0, exports.Scout9ApiFp)(this.configuration).customerDelete(id, options).then((request) => request(this.axios, this.basePath));
2930
3344
  }
3345
+ /**
3346
+ *
3347
+ * @summary Gets a customer group
3348
+ * @param {string} id
3349
+ * @param {*} [options] Override http request option.
3350
+ * @throws {RequiredError}
3351
+ * @memberof Scout9Api
3352
+ */
3353
+ customerGroup(id, options) {
3354
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroup(id, options).then((request) => request(this.axios, this.basePath));
3355
+ }
3356
+ /**
3357
+ *
3358
+ * @summary Creates a new customer group
3359
+ * @param {CreateCustomerGroupRequest} createCustomerGroupRequest
3360
+ * @param {*} [options] Override http request option.
3361
+ * @throws {RequiredError}
3362
+ * @memberof Scout9Api
3363
+ */
3364
+ customerGroupCreate(createCustomerGroupRequest, options) {
3365
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroupCreate(createCustomerGroupRequest, options).then((request) => request(this.axios, this.basePath));
3366
+ }
3367
+ /**
3368
+ *
3369
+ * @summary Deletes a customer group
3370
+ * @param {string} id
3371
+ * @param {*} [options] Override http request option.
3372
+ * @throws {RequiredError}
3373
+ * @memberof Scout9Api
3374
+ */
3375
+ customerGroupDelete(id, options) {
3376
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroupDelete(id, options).then((request) => request(this.axios, this.basePath));
3377
+ }
3378
+ /**
3379
+ *
3380
+ * @summary Updates a customer group
3381
+ * @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
3382
+ * @param {*} [options] Override http request option.
3383
+ * @throws {RequiredError}
3384
+ * @memberof Scout9Api
3385
+ */
3386
+ customerGroupUpdate(updateCustomerGroupRequest, options) {
3387
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroupUpdate(updateCustomerGroupRequest, options).then((request) => request(this.axios, this.basePath));
3388
+ }
3389
+ /**
3390
+ *
3391
+ * @summary Gets all or specific set of customer groups
3392
+ * @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
3393
+ * @param {Array<string>} [id]
3394
+ * @param {*} [options] Override http request option.
3395
+ * @throws {RequiredError}
3396
+ * @memberof Scout9Api
3397
+ */
3398
+ customerGroups(q, id, options) {
3399
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroups(q, id, options).then((request) => request(this.axios, this.basePath));
3400
+ }
3401
+ /**
3402
+ *
3403
+ * @summary Creates new customer groups
3404
+ * @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
3405
+ * @param {*} [options] Override http request option.
3406
+ * @throws {RequiredError}
3407
+ * @memberof Scout9Api
3408
+ */
3409
+ customerGroupsCreate(createCustomerGroupsRequest, options) {
3410
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroupsCreate(createCustomerGroupsRequest, options).then((request) => request(this.axios, this.basePath));
3411
+ }
3412
+ /**
3413
+ *
3414
+ * @summary Deletes multiple customer groups
3415
+ * @param {Array<string>} [id]
3416
+ * @param {*} [options] Override http request option.
3417
+ * @throws {RequiredError}
3418
+ * @memberof Scout9Api
3419
+ */
3420
+ customerGroupsDelete(id, options) {
3421
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroupsDelete(id, options).then((request) => request(this.axios, this.basePath));
3422
+ }
3423
+ /**
3424
+ *
3425
+ * @summary Updates multiple customer groups
3426
+ * @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
3427
+ * @param {*} [options] Override http request option.
3428
+ * @throws {RequiredError}
3429
+ * @memberof Scout9Api
3430
+ */
3431
+ customerGroupsUpdate(updateCustomerGroupsRequest, options) {
3432
+ return (0, exports.Scout9ApiFp)(this.configuration).customerGroupsUpdate(updateCustomerGroupsRequest, options).then((request) => request(this.axios, this.basePath));
3433
+ }
2931
3434
  /**
2932
3435
  *
2933
3436
  * @summary Updates a customer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scout9/admin",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",