tremendous 4.5.0 → 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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/api.d.ts +134 -87
- package/dist/api.js +152 -31
- package/dist/base.js +4 -1
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -21,12 +21,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
24
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
28
|
exports.GetFraudReview200ResponseFraudReviewStatusEnum = exports.FundingSourceTypeEnum = exports.FundingSourceStatusEnum = exports.FundingSourceUsagePermissionsEnum = exports.FundingSourceMethodEnum = exports.FraudRulesListItemRuleTypeEnum = exports.FraudRuleType = exports.FraudRuleRequestConfigPeriodEnum = exports.FraudRuleRequestConfigTypeEnum = exports.FraudReviewStatus = exports.FraudReviewRisk = exports.FraudReviewRedemptionMethod = exports.FraudReviewReason = exports.FraudReviewListItemRedemptionMethodEnum = exports.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewBaseRedemptionMethodEnum = exports.FraudReviewBaseReasonsEnum = exports.FraudReviewBaseStatusEnum = exports.FraudReviewRiskEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = exports.FieldDataTypeEnum = exports.DeliveryStatus = exports.DeliveryMethod = exports.DeliveryDetailsWithLinkStatusEnum = exports.DeliveryDetailsWithLinkMethodEnum = exports.DeliveryDetailsStatusEnum = exports.DeliveryDetailsMethodEnum = exports.CurrencyCodes = exports.CreateReportRequestFiltersDigitalRewardsStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsOrderStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsDeliveryMethodEnum = exports.CreateReportRequestFormatEnum = exports.CreateReportRequestReportTypeEnum = exports.CreateReport200ResponseReportStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryMethodEnum = exports.CreateOrder200ResponseOrderChannelEnum = exports.CreateOrder200ResponseOrderStatusEnum = exports.CreateInvoiceRequestCurrencyEnum = exports.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = void 0;
|
|
26
29
|
exports.ProductSubcategoryEnum = exports.ProductCategoryEnum = exports.PayoutStatusEnum = exports.OrganizationStatusEnum = exports.OrderWithoutLinkChannelEnum = exports.OrderWithoutLinkStatusEnum = exports.OrderWithLinkChannelEnum = exports.OrderWithLinkStatusEnum = exports.OrderStatus = exports.OrderBaseChannelEnum = exports.OrderBaseStatusEnum = exports.OrderChannelEnum = exports.OrderStatusEnum = exports.MemberWithoutEventsStatusEnum = exports.MemberWithEventsStatusEnum = exports.MemberBaseStatusEnum = exports.MemberStatusEnum = exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = exports.ListRewards200ResponseRewardsInnerDeliveryStatusEnum = exports.ListRewards200ResponseRewardsInnerDeliveryMethodEnum = exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = exports.ListProductsResponseProductsInnerCurrencyCodesEnum = exports.ListProductsResponseProductsInnerSubcategoryEnum = exports.ListProductsResponseProductsInnerCategoryEnum = exports.ListOrganizations200ResponseOrganizationsInnerStatusEnum = exports.ListOrders200ResponseOrdersInnerChannelEnum = exports.ListOrders200ResponseOrdersInnerStatusEnum = exports.ListMembers200ResponseMembersInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = exports.ListFields200ResponseFieldsInnerDataTypeEnum = exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = void 0;
|
|
27
30
|
exports.DeleteFraudRuleRuleTypeEnum = exports.FraudRulesApi = exports.FraudRulesApiFactory = exports.FraudRulesApiFp = exports.FraudRulesApiAxiosParamCreator = exports.ListFraudReviewsStatusEnum = exports.FraudReviewsApi = exports.FraudReviewsApiFactory = exports.FraudReviewsApiFp = exports.FraudReviewsApiAxiosParamCreator = exports.ForexApi = exports.ForexApiFactory = exports.ForexApiFp = exports.ForexApiAxiosParamCreator = exports.FieldsApi = exports.FieldsApiFactory = exports.FieldsApiFp = exports.FieldsApiAxiosParamCreator = exports.ConnectedOrganizationsApi = exports.ConnectedOrganizationsApiFactory = exports.ConnectedOrganizationsApiFp = exports.ConnectedOrganizationsApiAxiosParamCreator = exports.ConnectedOrganizationMembersApi = exports.ConnectedOrganizationMembersApiFactory = exports.ConnectedOrganizationMembersApiFp = exports.ConnectedOrganizationMembersApiAxiosParamCreator = exports.CampaignsApi = exports.CampaignsApiFactory = exports.CampaignsApiFp = exports.CampaignsApiAxiosParamCreator = exports.BalanceTransactionsApi = exports.BalanceTransactionsApiFactory = exports.BalanceTransactionsApiFp = exports.BalanceTransactionsApiAxiosParamCreator = exports.UpdateFraudRuleListRequestOperationEnum = exports.SingleRewardOrderWithoutLinkOrderChannelEnum = exports.SingleRewardOrderWithoutLinkOrderStatusEnum = exports.SingleRewardOrderWithLinkOrderChannelEnum = exports.SingleRewardOrderWithLinkOrderStatusEnum = exports.SingleRewardOrderRewardDeliveryMethodEnum = exports.RewardWithoutLinkDeliveryStatusEnum = exports.RewardWithoutLinkDeliveryMethodEnum = exports.RewardWithLinkDeliveryStatusEnum = exports.RewardWithLinkDeliveryMethodEnum = exports.RewardValueCurrencyCodeEnum = exports.ReviewRedeemedRewardsCountPeriodEnum = exports.ReviewRedeemedRewardsAmountPeriodEnum = exports.ReviewCountryTypeEnum = exports.ReportStatusEnum = exports.ProductCurrencyCodesEnum = void 0;
|
|
28
31
|
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = void 0;
|
|
29
|
-
const axios_1 = require("axios");
|
|
32
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
33
|
// Some imports not used depending on template conditions
|
|
31
34
|
// @ts-ignore
|
|
32
35
|
const common_1 = require("./common");
|
|
@@ -170,7 +173,7 @@ exports.CurrencyCodes = {
|
|
|
170
173
|
Bob: 'BOB',
|
|
171
174
|
Brl: 'BRL',
|
|
172
175
|
Bwp: 'BWP',
|
|
173
|
-
|
|
176
|
+
Byn: 'BYN',
|
|
174
177
|
Bzd: 'BZD',
|
|
175
178
|
Cdf: 'CDF',
|
|
176
179
|
Chf: 'CHF',
|
|
@@ -184,7 +187,6 @@ exports.CurrencyCodes = {
|
|
|
184
187
|
Dkk: 'DKK',
|
|
185
188
|
Dop: 'DOP',
|
|
186
189
|
Dzd: 'DZD',
|
|
187
|
-
Eek: 'EEK',
|
|
188
190
|
Egp: 'EGP',
|
|
189
191
|
Ern: 'ERN',
|
|
190
192
|
Etb: 'ETB',
|
|
@@ -213,8 +215,6 @@ exports.CurrencyCodes = {
|
|
|
213
215
|
Kzt: 'KZT',
|
|
214
216
|
Lbp: 'LBP',
|
|
215
217
|
Lkr: 'LKR',
|
|
216
|
-
Ltl: 'LTL',
|
|
217
|
-
Lvl: 'LVL',
|
|
218
218
|
Mad: 'MAD',
|
|
219
219
|
Mdl: 'MDL',
|
|
220
220
|
Mga: 'MGA',
|
|
@@ -265,8 +265,7 @@ exports.CurrencyCodes = {
|
|
|
265
265
|
Xaf: 'XAF',
|
|
266
266
|
Xof: 'XOF',
|
|
267
267
|
Yer: 'YER',
|
|
268
|
-
Zar: 'ZAR'
|
|
269
|
-
Zmk: 'ZMK'
|
|
268
|
+
Zar: 'ZAR'
|
|
270
269
|
};
|
|
271
270
|
exports.DeliveryDetailsMethodEnum = {
|
|
272
271
|
Email: 'EMAIL',
|
|
@@ -843,7 +842,7 @@ exports.ListProductsResponseProductsInnerCurrencyCodesEnum = {
|
|
|
843
842
|
Bob: 'BOB',
|
|
844
843
|
Brl: 'BRL',
|
|
845
844
|
Bwp: 'BWP',
|
|
846
|
-
|
|
845
|
+
Byn: 'BYN',
|
|
847
846
|
Bzd: 'BZD',
|
|
848
847
|
Cdf: 'CDF',
|
|
849
848
|
Chf: 'CHF',
|
|
@@ -857,7 +856,6 @@ exports.ListProductsResponseProductsInnerCurrencyCodesEnum = {
|
|
|
857
856
|
Dkk: 'DKK',
|
|
858
857
|
Dop: 'DOP',
|
|
859
858
|
Dzd: 'DZD',
|
|
860
|
-
Eek: 'EEK',
|
|
861
859
|
Egp: 'EGP',
|
|
862
860
|
Ern: 'ERN',
|
|
863
861
|
Etb: 'ETB',
|
|
@@ -886,8 +884,6 @@ exports.ListProductsResponseProductsInnerCurrencyCodesEnum = {
|
|
|
886
884
|
Kzt: 'KZT',
|
|
887
885
|
Lbp: 'LBP',
|
|
888
886
|
Lkr: 'LKR',
|
|
889
|
-
Ltl: 'LTL',
|
|
890
|
-
Lvl: 'LVL',
|
|
891
887
|
Mad: 'MAD',
|
|
892
888
|
Mdl: 'MDL',
|
|
893
889
|
Mga: 'MGA',
|
|
@@ -938,8 +934,7 @@ exports.ListProductsResponseProductsInnerCurrencyCodesEnum = {
|
|
|
938
934
|
Xaf: 'XAF',
|
|
939
935
|
Xof: 'XOF',
|
|
940
936
|
Yer: 'YER',
|
|
941
|
-
Zar: 'ZAR'
|
|
942
|
-
Zmk: 'ZMK'
|
|
937
|
+
Zar: 'ZAR'
|
|
943
938
|
};
|
|
944
939
|
exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = {
|
|
945
940
|
Card: 'card',
|
|
@@ -975,7 +970,7 @@ exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = {
|
|
|
975
970
|
Bob: 'BOB',
|
|
976
971
|
Brl: 'BRL',
|
|
977
972
|
Bwp: 'BWP',
|
|
978
|
-
|
|
973
|
+
Byn: 'BYN',
|
|
979
974
|
Bzd: 'BZD',
|
|
980
975
|
Cdf: 'CDF',
|
|
981
976
|
Chf: 'CHF',
|
|
@@ -989,7 +984,6 @@ exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = {
|
|
|
989
984
|
Dkk: 'DKK',
|
|
990
985
|
Dop: 'DOP',
|
|
991
986
|
Dzd: 'DZD',
|
|
992
|
-
Eek: 'EEK',
|
|
993
987
|
Egp: 'EGP',
|
|
994
988
|
Ern: 'ERN',
|
|
995
989
|
Etb: 'ETB',
|
|
@@ -1018,8 +1012,6 @@ exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = {
|
|
|
1018
1012
|
Kzt: 'KZT',
|
|
1019
1013
|
Lbp: 'LBP',
|
|
1020
1014
|
Lkr: 'LKR',
|
|
1021
|
-
Ltl: 'LTL',
|
|
1022
|
-
Lvl: 'LVL',
|
|
1023
1015
|
Mad: 'MAD',
|
|
1024
1016
|
Mdl: 'MDL',
|
|
1025
1017
|
Mga: 'MGA',
|
|
@@ -1070,8 +1062,7 @@ exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = {
|
|
|
1070
1062
|
Xaf: 'XAF',
|
|
1071
1063
|
Xof: 'XOF',
|
|
1072
1064
|
Yer: 'YER',
|
|
1073
|
-
Zar: 'ZAR'
|
|
1074
|
-
Zmk: 'ZMK'
|
|
1065
|
+
Zar: 'ZAR'
|
|
1075
1066
|
};
|
|
1076
1067
|
exports.MemberStatusEnum = {
|
|
1077
1068
|
Registered: 'REGISTERED',
|
|
@@ -1236,7 +1227,7 @@ exports.ProductCurrencyCodesEnum = {
|
|
|
1236
1227
|
Bob: 'BOB',
|
|
1237
1228
|
Brl: 'BRL',
|
|
1238
1229
|
Bwp: 'BWP',
|
|
1239
|
-
|
|
1230
|
+
Byn: 'BYN',
|
|
1240
1231
|
Bzd: 'BZD',
|
|
1241
1232
|
Cdf: 'CDF',
|
|
1242
1233
|
Chf: 'CHF',
|
|
@@ -1250,7 +1241,6 @@ exports.ProductCurrencyCodesEnum = {
|
|
|
1250
1241
|
Dkk: 'DKK',
|
|
1251
1242
|
Dop: 'DOP',
|
|
1252
1243
|
Dzd: 'DZD',
|
|
1253
|
-
Eek: 'EEK',
|
|
1254
1244
|
Egp: 'EGP',
|
|
1255
1245
|
Ern: 'ERN',
|
|
1256
1246
|
Etb: 'ETB',
|
|
@@ -1279,8 +1269,6 @@ exports.ProductCurrencyCodesEnum = {
|
|
|
1279
1269
|
Kzt: 'KZT',
|
|
1280
1270
|
Lbp: 'LBP',
|
|
1281
1271
|
Lkr: 'LKR',
|
|
1282
|
-
Ltl: 'LTL',
|
|
1283
|
-
Lvl: 'LVL',
|
|
1284
1272
|
Mad: 'MAD',
|
|
1285
1273
|
Mdl: 'MDL',
|
|
1286
1274
|
Mga: 'MGA',
|
|
@@ -1331,8 +1319,7 @@ exports.ProductCurrencyCodesEnum = {
|
|
|
1331
1319
|
Xaf: 'XAF',
|
|
1332
1320
|
Xof: 'XOF',
|
|
1333
1321
|
Yer: 'YER',
|
|
1334
|
-
Zar: 'ZAR'
|
|
1335
|
-
Zmk: 'ZMK'
|
|
1322
|
+
Zar: 'ZAR'
|
|
1336
1323
|
};
|
|
1337
1324
|
exports.ReportStatusEnum = {
|
|
1338
1325
|
Created: 'CREATED',
|
|
@@ -1379,7 +1366,7 @@ exports.RewardValueCurrencyCodeEnum = {
|
|
|
1379
1366
|
Bob: 'BOB',
|
|
1380
1367
|
Brl: 'BRL',
|
|
1381
1368
|
Bwp: 'BWP',
|
|
1382
|
-
|
|
1369
|
+
Byn: 'BYN',
|
|
1383
1370
|
Bzd: 'BZD',
|
|
1384
1371
|
Cdf: 'CDF',
|
|
1385
1372
|
Chf: 'CHF',
|
|
@@ -1393,7 +1380,6 @@ exports.RewardValueCurrencyCodeEnum = {
|
|
|
1393
1380
|
Dkk: 'DKK',
|
|
1394
1381
|
Dop: 'DOP',
|
|
1395
1382
|
Dzd: 'DZD',
|
|
1396
|
-
Eek: 'EEK',
|
|
1397
1383
|
Egp: 'EGP',
|
|
1398
1384
|
Ern: 'ERN',
|
|
1399
1385
|
Etb: 'ETB',
|
|
@@ -1422,8 +1408,6 @@ exports.RewardValueCurrencyCodeEnum = {
|
|
|
1422
1408
|
Kzt: 'KZT',
|
|
1423
1409
|
Lbp: 'LBP',
|
|
1424
1410
|
Lkr: 'LKR',
|
|
1425
|
-
Ltl: 'LTL',
|
|
1426
|
-
Lvl: 'LVL',
|
|
1427
1411
|
Mad: 'MAD',
|
|
1428
1412
|
Mdl: 'MDL',
|
|
1429
1413
|
Mga: 'MGA',
|
|
@@ -1474,8 +1458,7 @@ exports.RewardValueCurrencyCodeEnum = {
|
|
|
1474
1458
|
Xaf: 'XAF',
|
|
1475
1459
|
Xof: 'XOF',
|
|
1476
1460
|
Yer: 'YER',
|
|
1477
|
-
Zar: 'ZAR'
|
|
1478
|
-
Zmk: 'ZMK'
|
|
1461
|
+
Zar: 'ZAR'
|
|
1479
1462
|
};
|
|
1480
1463
|
exports.RewardWithLinkDeliveryMethodEnum = {
|
|
1481
1464
|
Email: 'EMAIL',
|
|
@@ -2066,6 +2049,38 @@ const ConnectedOrganizationMembersApiAxiosParamCreator = function (configuration
|
|
|
2066
2049
|
options: localVarRequestOptions,
|
|
2067
2050
|
};
|
|
2068
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
|
+
}),
|
|
2069
2084
|
/**
|
|
2070
2085
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2071
2086
|
* @summary Retrieve a connected organization member
|
|
@@ -2183,6 +2198,22 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2183
2198
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2184
2199
|
});
|
|
2185
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
|
+
},
|
|
2186
2217
|
/**
|
|
2187
2218
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2188
2219
|
* @summary Retrieve a connected organization member
|
|
@@ -2248,6 +2279,16 @@ const ConnectedOrganizationMembersApiFactory = function (configuration, basePath
|
|
|
2248
2279
|
createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
|
|
2249
2280
|
return localVarFp.createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options).then((request) => request(axios, basePath));
|
|
2250
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
|
+
},
|
|
2251
2292
|
/**
|
|
2252
2293
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2253
2294
|
* @summary Retrieve a connected organization member
|
|
@@ -2303,6 +2344,17 @@ class ConnectedOrganizationMembersApi extends base_1.BaseAPI {
|
|
|
2303
2344
|
createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
|
|
2304
2345
|
return (0, exports.ConnectedOrganizationMembersApiFp)(this.configuration).createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2305
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
|
+
}
|
|
2306
2358
|
/**
|
|
2307
2359
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2308
2360
|
* @summary Retrieve a connected organization member
|
|
@@ -2368,6 +2420,38 @@ const ConnectedOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
2368
2420
|
options: localVarRequestOptions,
|
|
2369
2421
|
};
|
|
2370
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
|
+
}),
|
|
2371
2455
|
/**
|
|
2372
2456
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2373
2457
|
* @summary Retrieve a connected organization
|
|
@@ -2462,6 +2546,22 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2462
2546
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2463
2547
|
});
|
|
2464
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
|
+
},
|
|
2465
2565
|
/**
|
|
2466
2566
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2467
2567
|
* @summary Retrieve a connected organization
|
|
@@ -2515,6 +2615,16 @@ const ConnectedOrganizationsApiFactory = function (configuration, basePath, axio
|
|
|
2515
2615
|
createConnectedOrganization(createConnectedOrganizationRequest, options) {
|
|
2516
2616
|
return localVarFp.createConnectedOrganization(createConnectedOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
2517
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
|
+
},
|
|
2518
2628
|
/**
|
|
2519
2629
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2520
2630
|
* @summary Retrieve a connected organization
|
|
@@ -2557,6 +2667,17 @@ class ConnectedOrganizationsApi extends base_1.BaseAPI {
|
|
|
2557
2667
|
createConnectedOrganization(createConnectedOrganizationRequest, options) {
|
|
2558
2668
|
return (0, exports.ConnectedOrganizationsApiFp)(this.configuration).createConnectedOrganization(createConnectedOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2559
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
|
+
}
|
|
2560
2681
|
/**
|
|
2561
2682
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2562
2683
|
* @summary Retrieve a connected organization
|
package/dist/base.js
CHANGED
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
15
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
19
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
|
-
const axios_1 = require("axios");
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
18
21
|
exports.BASE_PATH = "https://testflight.tremendous.com/api/v2".replace(/\/+$/, "");
|
|
19
22
|
/**
|
|
20
23
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tremendous",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "A node.js client for the Tremendous API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tremendous",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^25.0.2",
|
|
33
|
-
"typescript": "^
|
|
33
|
+
"typescript": "^6.0.2",
|
|
34
34
|
"vitest": "^4.0.6"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/tremendous-rewards/tremendous-node#readme",
|