tremendous 4.5.1 → 4.6.0

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.5.1"
2
+ ".": "4.6.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.6.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.5.1...tremendous-v4.6.0) (2026-04-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * add delete connected organization endpoint ([02caf0a](https://github.com/tremendous-rewards/tremendous-node/commit/02caf0a16ea4eccbfe8b9e095cd5698538e5e866))
9
+ * add delete connected organization member endpoint ([02caf0a](https://github.com/tremendous-rewards/tremendous-node/commit/02caf0a16ea4eccbfe8b9e095cd5698538e5e866))
10
+
3
11
  ## [4.5.1](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.5.0...tremendous-v4.5.1) (2026-04-14)
4
12
 
5
13
 
package/dist/api.d.ts CHANGED
@@ -8718,6 +8718,14 @@ export declare const ConnectedOrganizationMembersApiAxiosParamCreator: (configur
8718
8718
  * @throws {RequiredError}
8719
8719
  */
8720
8720
  createConnectedOrganizationMemberSession: (id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8721
+ /**
8722
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
8723
+ * @summary Remove a connected organization member
8724
+ * @param {string} id ID of the connected organization member to remove.
8725
+ * @param {*} [options] Override http request option.
8726
+ * @throws {RequiredError}
8727
+ */
8728
+ deleteConnectedOrganizationMember: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8721
8729
  /**
8722
8730
  * Retrieve the connected organization member, identified by the given `id` in the URL
8723
8731
  * @summary Retrieve a connected organization member
@@ -8759,6 +8767,14 @@ export declare const ConnectedOrganizationMembersApiFp: (configuration?: Configu
8759
8767
  * @throws {RequiredError}
8760
8768
  */
8761
8769
  createConnectedOrganizationMemberSession(id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganizationMemberSession200Response>>;
8770
+ /**
8771
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
8772
+ * @summary Remove a connected organization member
8773
+ * @param {string} id ID of the connected organization member to remove.
8774
+ * @param {*} [options] Override http request option.
8775
+ * @throws {RequiredError}
8776
+ */
8777
+ deleteConnectedOrganizationMember(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganizationMember200Response>>;
8762
8778
  /**
8763
8779
  * Retrieve the connected organization member, identified by the given `id` in the URL
8764
8780
  * @summary Retrieve a connected organization member
@@ -8800,6 +8816,14 @@ export declare const ConnectedOrganizationMembersApiFactory: (configuration?: Co
8800
8816
  * @throws {RequiredError}
8801
8817
  */
8802
8818
  createConnectedOrganizationMemberSession(id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganizationMemberSession200Response>;
8819
+ /**
8820
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
8821
+ * @summary Remove a connected organization member
8822
+ * @param {string} id ID of the connected organization member to remove.
8823
+ * @param {*} [options] Override http request option.
8824
+ * @throws {RequiredError}
8825
+ */
8826
+ deleteConnectedOrganizationMember(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganizationMember200Response>;
8803
8827
  /**
8804
8828
  * Retrieve the connected organization member, identified by the given `id` in the URL
8805
8829
  * @summary Retrieve a connected organization member
@@ -8845,6 +8869,15 @@ export declare class ConnectedOrganizationMembersApi extends BaseAPI {
8845
8869
  * @memberof ConnectedOrganizationMembersApi
8846
8870
  */
8847
8871
  createConnectedOrganizationMemberSession(id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganizationMemberSession200Response, any, {}>>;
8872
+ /**
8873
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
8874
+ * @summary Remove a connected organization member
8875
+ * @param {string} id ID of the connected organization member to remove.
8876
+ * @param {*} [options] Override http request option.
8877
+ * @throws {RequiredError}
8878
+ * @memberof ConnectedOrganizationMembersApi
8879
+ */
8880
+ deleteConnectedOrganizationMember(id: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganizationMember200Response, any, {}>>;
8848
8881
  /**
8849
8882
  * Retrieve the connected organization member, identified by the given `id` in the URL
8850
8883
  * @summary Retrieve a connected organization member
@@ -8879,6 +8912,14 @@ export declare const ConnectedOrganizationsApiAxiosParamCreator: (configuration?
8879
8912
  * @throws {RequiredError}
8880
8913
  */
8881
8914
  createConnectedOrganization: (createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8915
+ /**
8916
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
8917
+ * @summary Delete a connected organization
8918
+ * @param {string} id ID of the connected organization to delete.
8919
+ * @param {*} [options] Override http request option.
8920
+ * @throws {RequiredError}
8921
+ */
8922
+ deleteConnectedOrganization: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8882
8923
  /**
8883
8924
  * Retrieve the connected organization, identified by the given `id` in the URL
8884
8925
  * @summary Retrieve a connected organization
@@ -8910,6 +8951,14 @@ export declare const ConnectedOrganizationsApiFp: (configuration?: Configuration
8910
8951
  * @throws {RequiredError}
8911
8952
  */
8912
8953
  createConnectedOrganization(createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganization200Response>>;
8954
+ /**
8955
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
8956
+ * @summary Delete a connected organization
8957
+ * @param {string} id ID of the connected organization to delete.
8958
+ * @param {*} [options] Override http request option.
8959
+ * @throws {RequiredError}
8960
+ */
8961
+ deleteConnectedOrganization(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganization200Response>>;
8913
8962
  /**
8914
8963
  * Retrieve the connected organization, identified by the given `id` in the URL
8915
8964
  * @summary Retrieve a connected organization
@@ -8941,6 +8990,14 @@ export declare const ConnectedOrganizationsApiFactory: (configuration?: Configur
8941
8990
  * @throws {RequiredError}
8942
8991
  */
8943
8992
  createConnectedOrganization(createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganization200Response>;
8993
+ /**
8994
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
8995
+ * @summary Delete a connected organization
8996
+ * @param {string} id ID of the connected organization to delete.
8997
+ * @param {*} [options] Override http request option.
8998
+ * @throws {RequiredError}
8999
+ */
9000
+ deleteConnectedOrganization(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganization200Response>;
8944
9001
  /**
8945
9002
  * Retrieve the connected organization, identified by the given `id` in the URL
8946
9003
  * @summary Retrieve a connected organization
@@ -8975,6 +9032,15 @@ export declare class ConnectedOrganizationsApi extends BaseAPI {
8975
9032
  * @memberof ConnectedOrganizationsApi
8976
9033
  */
8977
9034
  createConnectedOrganization(createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganization200Response, any, {}>>;
9035
+ /**
9036
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
9037
+ * @summary Delete a connected organization
9038
+ * @param {string} id ID of the connected organization to delete.
9039
+ * @param {*} [options] Override http request option.
9040
+ * @throws {RequiredError}
9041
+ * @memberof ConnectedOrganizationsApi
9042
+ */
9043
+ deleteConnectedOrganization(id: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganization200Response, any, {}>>;
8978
9044
  /**
8979
9045
  * Retrieve the connected organization, identified by the given `id` in the URL
8980
9046
  * @summary Retrieve a connected organization
package/dist/api.js CHANGED
@@ -2049,6 +2049,38 @@ const ConnectedOrganizationMembersApiAxiosParamCreator = function (configuration
2049
2049
  options: localVarRequestOptions,
2050
2050
  };
2051
2051
  }),
2052
+ /**
2053
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
2054
+ * @summary Remove a connected organization member
2055
+ * @param {string} id ID of the connected organization member to remove.
2056
+ * @param {*} [options] Override http request option.
2057
+ * @throws {RequiredError}
2058
+ */
2059
+ deleteConnectedOrganizationMember: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2060
+ // verify required parameter 'id' is not null or undefined
2061
+ (0, common_1.assertParamExists)('deleteConnectedOrganizationMember', 'id', id);
2062
+ const localVarPath = `/connected_organization_members/{id}`
2063
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2064
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2065
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2066
+ let baseOptions;
2067
+ if (configuration) {
2068
+ baseOptions = configuration.baseOptions;
2069
+ }
2070
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2071
+ const localVarHeaderParameter = {};
2072
+ const localVarQueryParameter = {};
2073
+ // authentication BearerApiKey required
2074
+ // http bearer authentication required
2075
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2076
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2077
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2078
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2079
+ return {
2080
+ url: (0, common_1.toPathString)(localVarUrlObj),
2081
+ options: localVarRequestOptions,
2082
+ };
2083
+ }),
2052
2084
  /**
2053
2085
  * Retrieve the connected organization member, identified by the given `id` in the URL
2054
2086
  * @summary Retrieve a connected organization member
@@ -2166,6 +2198,22 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
2166
2198
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2167
2199
  });
2168
2200
  },
2201
+ /**
2202
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
2203
+ * @summary Remove a connected organization member
2204
+ * @param {string} id ID of the connected organization member to remove.
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ deleteConnectedOrganizationMember(id, options) {
2209
+ return __awaiter(this, void 0, void 0, function* () {
2210
+ var _a, _b, _c;
2211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConnectedOrganizationMember(id, options);
2212
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2213
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectedOrganizationMembersApi.deleteConnectedOrganizationMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2214
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2215
+ });
2216
+ },
2169
2217
  /**
2170
2218
  * Retrieve the connected organization member, identified by the given `id` in the URL
2171
2219
  * @summary Retrieve a connected organization member
@@ -2231,6 +2279,16 @@ const ConnectedOrganizationMembersApiFactory = function (configuration, basePath
2231
2279
  createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
2232
2280
  return localVarFp.createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options).then((request) => request(axios, basePath));
2233
2281
  },
2282
+ /**
2283
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
2284
+ * @summary Remove a connected organization member
2285
+ * @param {string} id ID of the connected organization member to remove.
2286
+ * @param {*} [options] Override http request option.
2287
+ * @throws {RequiredError}
2288
+ */
2289
+ deleteConnectedOrganizationMember(id, options) {
2290
+ return localVarFp.deleteConnectedOrganizationMember(id, options).then((request) => request(axios, basePath));
2291
+ },
2234
2292
  /**
2235
2293
  * Retrieve the connected organization member, identified by the given `id` in the URL
2236
2294
  * @summary Retrieve a connected organization member
@@ -2286,6 +2344,17 @@ class ConnectedOrganizationMembersApi extends base_1.BaseAPI {
2286
2344
  createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
2287
2345
  return (0, exports.ConnectedOrganizationMembersApiFp)(this.configuration).createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options).then((request) => request(this.axios, this.basePath));
2288
2346
  }
2347
+ /**
2348
+ * Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
2349
+ * @summary Remove a connected organization member
2350
+ * @param {string} id ID of the connected organization member to remove.
2351
+ * @param {*} [options] Override http request option.
2352
+ * @throws {RequiredError}
2353
+ * @memberof ConnectedOrganizationMembersApi
2354
+ */
2355
+ deleteConnectedOrganizationMember(id, options) {
2356
+ return (0, exports.ConnectedOrganizationMembersApiFp)(this.configuration).deleteConnectedOrganizationMember(id, options).then((request) => request(this.axios, this.basePath));
2357
+ }
2289
2358
  /**
2290
2359
  * Retrieve the connected organization member, identified by the given `id` in the URL
2291
2360
  * @summary Retrieve a connected organization member
@@ -2351,6 +2420,38 @@ const ConnectedOrganizationsApiAxiosParamCreator = function (configuration) {
2351
2420
  options: localVarRequestOptions,
2352
2421
  };
2353
2422
  }),
2423
+ /**
2424
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
2425
+ * @summary Delete a connected organization
2426
+ * @param {string} id ID of the connected organization to delete.
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ deleteConnectedOrganization: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2431
+ // verify required parameter 'id' is not null or undefined
2432
+ (0, common_1.assertParamExists)('deleteConnectedOrganization', 'id', id);
2433
+ const localVarPath = `/connected_organizations/{id}`
2434
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2435
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2436
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2437
+ let baseOptions;
2438
+ if (configuration) {
2439
+ baseOptions = configuration.baseOptions;
2440
+ }
2441
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2442
+ const localVarHeaderParameter = {};
2443
+ const localVarQueryParameter = {};
2444
+ // authentication BearerApiKey required
2445
+ // http bearer authentication required
2446
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2447
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2449
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2450
+ return {
2451
+ url: (0, common_1.toPathString)(localVarUrlObj),
2452
+ options: localVarRequestOptions,
2453
+ };
2454
+ }),
2354
2455
  /**
2355
2456
  * Retrieve the connected organization, identified by the given `id` in the URL
2356
2457
  * @summary Retrieve a connected organization
@@ -2445,6 +2546,22 @@ const ConnectedOrganizationsApiFp = function (configuration) {
2445
2546
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2446
2547
  });
2447
2548
  },
2549
+ /**
2550
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
2551
+ * @summary Delete a connected organization
2552
+ * @param {string} id ID of the connected organization to delete.
2553
+ * @param {*} [options] Override http request option.
2554
+ * @throws {RequiredError}
2555
+ */
2556
+ deleteConnectedOrganization(id, options) {
2557
+ return __awaiter(this, void 0, void 0, function* () {
2558
+ var _a, _b, _c;
2559
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConnectedOrganization(id, options);
2560
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2561
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectedOrganizationsApi.deleteConnectedOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2562
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2563
+ });
2564
+ },
2448
2565
  /**
2449
2566
  * Retrieve the connected organization, identified by the given `id` in the URL
2450
2567
  * @summary Retrieve a connected organization
@@ -2498,6 +2615,16 @@ const ConnectedOrganizationsApiFactory = function (configuration, basePath, axio
2498
2615
  createConnectedOrganization(createConnectedOrganizationRequest, options) {
2499
2616
  return localVarFp.createConnectedOrganization(createConnectedOrganizationRequest, options).then((request) => request(axios, basePath));
2500
2617
  },
2618
+ /**
2619
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
2620
+ * @summary Delete a connected organization
2621
+ * @param {string} id ID of the connected organization to delete.
2622
+ * @param {*} [options] Override http request option.
2623
+ * @throws {RequiredError}
2624
+ */
2625
+ deleteConnectedOrganization(id, options) {
2626
+ return localVarFp.deleteConnectedOrganization(id, options).then((request) => request(axios, basePath));
2627
+ },
2501
2628
  /**
2502
2629
  * Retrieve the connected organization, identified by the given `id` in the URL
2503
2630
  * @summary Retrieve a connected organization
@@ -2540,6 +2667,17 @@ class ConnectedOrganizationsApi extends base_1.BaseAPI {
2540
2667
  createConnectedOrganization(createConnectedOrganizationRequest, options) {
2541
2668
  return (0, exports.ConnectedOrganizationsApiFp)(this.configuration).createConnectedOrganization(createConnectedOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
2542
2669
  }
2670
+ /**
2671
+ * Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
2672
+ * @summary Delete a connected organization
2673
+ * @param {string} id ID of the connected organization to delete.
2674
+ * @param {*} [options] Override http request option.
2675
+ * @throws {RequiredError}
2676
+ * @memberof ConnectedOrganizationsApi
2677
+ */
2678
+ deleteConnectedOrganization(id, options) {
2679
+ return (0, exports.ConnectedOrganizationsApiFp)(this.configuration).deleteConnectedOrganization(id, options).then((request) => request(this.axios, this.basePath));
2680
+ }
2543
2681
  /**
2544
2682
  * Retrieve the connected organization, identified by the given `id` in the URL
2545
2683
  * @summary Retrieve a connected organization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tremendous",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "description": "A node.js client for the Tremendous API",
5
5
  "keywords": [
6
6
  "tremendous",