@accelbyte/sdk 0.1.1-alpha.62 → 0.2.0-beta.1
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/CHANGELOG.md +9 -1
- package/dist/index.browser.es.js +33 -37
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.d.ts +3389 -6099
- package/dist/index.node.es.js +33 -37
- package/dist/index.node.es.js.map +1 -1
- package/dist/index.node.js +40 -45
- package/dist/index.node.js.map +1 -1
- package/examples/next/package.json +1 -1
- package/examples/next/pages/index.tsx +15 -14
- package/examples/next/yarn.lock +9 -9
- package/examples/node/index.mjs +13 -12
- package/examples/node/package.json +1 -1
- package/examples/node/yarn.lock +9 -9
- package/examples/vite/package.json +1 -1
- package/examples/vite/src/Sdk.ts +12 -12
- package/examples/vite/yarn.lock +9 -9
- package/package.json +1 -1
- package/examples/next/.env.example +0 -7
- package/examples/node/.env.example +0 -7
- package/examples/vite/.env.example +0 -5
package/dist/index.node.js
CHANGED
|
@@ -24688,7 +24688,7 @@ const Image = mod.object({
|
|
|
24688
24688
|
* This is licensed software from AccelByte Inc, for limitations
|
|
24689
24689
|
* and restrictions contact your company contract manager.
|
|
24690
24690
|
*/
|
|
24691
|
-
const
|
|
24691
|
+
const Predicate = mod.object({
|
|
24692
24692
|
name: mod.string().nullish(),
|
|
24693
24693
|
predicateType: mod.enum(['EntitlementPredicate', 'SeasonPassPredicate', 'SeasonTierPredicate']).nullish(),
|
|
24694
24694
|
comparison: mod
|
|
@@ -24704,7 +24704,7 @@ const PredicateObject = mod.object({
|
|
|
24704
24704
|
* This is licensed software from AccelByte Inc, for limitations
|
|
24705
24705
|
* and restrictions contact your company contract manager.
|
|
24706
24706
|
*/
|
|
24707
|
-
const ConditionGroup = mod.object({ predicates: mod.array(
|
|
24707
|
+
const ConditionGroup = mod.object({ predicates: mod.array(Predicate).nullish(), operator: mod.enum(['and', 'or']).nullish() });
|
|
24708
24708
|
|
|
24709
24709
|
/*
|
|
24710
24710
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -25214,13 +25214,6 @@ const OrderHistoryInfo = mod.object({
|
|
|
25214
25214
|
*/
|
|
25215
25215
|
const OrderHistoryInfoArray = mod.array(OrderHistoryInfo);
|
|
25216
25216
|
|
|
25217
|
-
/*
|
|
25218
|
-
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25219
|
-
* This is licensed software from AccelByte Inc, for limitations
|
|
25220
|
-
* and restrictions contact your company contract manager.
|
|
25221
|
-
*/
|
|
25222
|
-
const ADtoObjectForOrderCreationOptions = mod.object({ skipPriceValidation: mod.boolean().nullish() });
|
|
25223
|
-
|
|
25224
25217
|
/*
|
|
25225
25218
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25226
25219
|
* This is licensed software from AccelByte Inc, for limitations
|
|
@@ -25234,6 +25227,13 @@ const CurrencySummary = mod.object({
|
|
|
25234
25227
|
decimals: mod.number().int()
|
|
25235
25228
|
});
|
|
25236
25229
|
|
|
25230
|
+
/*
|
|
25231
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25232
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
25233
|
+
* and restrictions contact your company contract manager.
|
|
25234
|
+
*/
|
|
25235
|
+
const OrderCreationOptions = mod.object({ skipPriceValidation: mod.boolean().nullish() });
|
|
25236
|
+
|
|
25237
25237
|
/*
|
|
25238
25238
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25239
25239
|
* This is licensed software from AccelByte Inc, for limitations
|
|
@@ -25249,7 +25249,7 @@ const OrderInfo = mod.object({
|
|
|
25249
25249
|
quantity: mod.number().int(),
|
|
25250
25250
|
price: mod.number().int(),
|
|
25251
25251
|
discountedPrice: mod.number().int(),
|
|
25252
|
-
creationOptions:
|
|
25252
|
+
creationOptions: OrderCreationOptions.nullish(),
|
|
25253
25253
|
paymentProvider: mod.enum(['WALLET', 'XSOLLA', 'ADYEN', 'STRIPE', 'CHECKOUT', 'ALIPAY', 'WXPAY', 'PAYPAL']).nullish(),
|
|
25254
25254
|
paymentMethod: mod.string().nullish(),
|
|
25255
25255
|
tax: mod.number().int().nullish(),
|
|
@@ -30121,7 +30121,7 @@ const ItemCreate = mod.object({
|
|
|
30121
30121
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30122
30122
|
* and restrictions contact your company contract manager.
|
|
30123
30123
|
*/
|
|
30124
|
-
const
|
|
30124
|
+
const AvailableComparison = mod.object({
|
|
30125
30125
|
comparison: mod
|
|
30126
30126
|
.enum(['is', 'isNot', 'isGreaterThan', 'isGreaterThanOrEqual', 'isLessThan', 'isLessThanOrEqual', 'includes', 'excludes'])
|
|
30127
30127
|
.nullish(),
|
|
@@ -30133,9 +30133,9 @@ const AvailableComparisonObject = mod.object({
|
|
|
30133
30133
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30134
30134
|
* and restrictions contact your company contract manager.
|
|
30135
30135
|
*/
|
|
30136
|
-
const
|
|
30136
|
+
const AvailablePredicate = mod.object({
|
|
30137
30137
|
predicateType: mod.enum(['EntitlementPredicate', 'SeasonPassPredicate', 'SeasonTierPredicate']).nullish(),
|
|
30138
|
-
availableComparisons: mod.array(
|
|
30138
|
+
availableComparisons: mod.array(AvailableComparison).nullish(),
|
|
30139
30139
|
valueType: mod.enum(['List', 'Number', 'String']).nullish(),
|
|
30140
30140
|
showAnyOf: mod.boolean().nullish()
|
|
30141
30141
|
});
|
|
@@ -30873,22 +30873,22 @@ const AchievementInfo = mod.object({
|
|
|
30873
30873
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30874
30874
|
* and restrictions contact your company contract manager.
|
|
30875
30875
|
*/
|
|
30876
|
-
const
|
|
30876
|
+
const XblUserAchievements = mod.object({ achievements: mod.array(AchievementInfo).nullish() });
|
|
30877
30877
|
|
|
30878
30878
|
/*
|
|
30879
30879
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
30880
30880
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30881
30881
|
* and restrictions contact your company contract manager.
|
|
30882
30882
|
*/
|
|
30883
|
-
const
|
|
30883
|
+
const Achievement = mod.object({ id: mod.string().nullish(), value: mod.number().int().nullish() });
|
|
30884
30884
|
|
|
30885
30885
|
/*
|
|
30886
30886
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
30887
30887
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30888
30888
|
* and restrictions contact your company contract manager.
|
|
30889
30889
|
*/
|
|
30890
|
-
const
|
|
30891
|
-
achievements: mod.array(
|
|
30890
|
+
const XblAchievementUpdateRequest = mod.object({
|
|
30891
|
+
achievements: mod.array(Achievement).nullish(),
|
|
30892
30892
|
serviceConfigId: mod.string().nullish(),
|
|
30893
30893
|
titleId: mod.string().nullish(),
|
|
30894
30894
|
xboxUserId: mod.string().nullish()
|
|
@@ -30899,17 +30899,7 @@ const ADtoObjectForUpdateXboxAchievementCompletePercentageApi = mod.object({
|
|
|
30899
30899
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30900
30900
|
* and restrictions contact your company contract manager.
|
|
30901
30901
|
*/
|
|
30902
|
-
const
|
|
30903
|
-
|
|
30904
|
-
/*
|
|
30905
|
-
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
30906
|
-
* This is licensed software from AccelByte Inc, for limitations
|
|
30907
|
-
* and restrictions contact your company contract manager.
|
|
30908
|
-
*/
|
|
30909
|
-
const ADtoObjectForUnlockSteamAchievementApi = mod.object({
|
|
30910
|
-
steamUserId: mod.string().nullish(),
|
|
30911
|
-
achievements: mod.array(SteamAchievementRequest).nullish()
|
|
30912
|
-
});
|
|
30902
|
+
const SteamAchievementUpdateRequest = mod.object({ steamUserId: mod.string().nullish(), achievements: mod.array(Achievement).nullish() });
|
|
30913
30903
|
|
|
30914
30904
|
/*
|
|
30915
30905
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -31542,7 +31532,7 @@ const Order = mod.object({
|
|
|
31542
31532
|
'DELETED'
|
|
31543
31533
|
])
|
|
31544
31534
|
.nullish(),
|
|
31545
|
-
creationOptions:
|
|
31535
|
+
creationOptions: OrderCreationOptions.nullish(),
|
|
31546
31536
|
sandbox: mod.boolean().nullish(),
|
|
31547
31537
|
itemId: mod.string().nullish(),
|
|
31548
31538
|
quantity: mod.number().int().nullish(),
|
|
@@ -31695,7 +31685,7 @@ const AdminOrderCreate = mod.object({
|
|
|
31695
31685
|
ext: mod.record(mod.any()).nullish(),
|
|
31696
31686
|
sandbox: mod.boolean().nullish(),
|
|
31697
31687
|
platform: mod.enum(['Playstation', 'Xbox', 'Steam', 'Epic', 'IOS', 'GooglePlay', 'Nintendo', 'Other']).nullish(),
|
|
31698
|
-
options:
|
|
31688
|
+
options: OrderCreationOptions.nullish(),
|
|
31699
31689
|
currencyNamespace: mod.string().nullish()
|
|
31700
31690
|
});
|
|
31701
31691
|
|
|
@@ -32476,12 +32466,7 @@ const RevokeCurrency = mod.object({
|
|
|
32476
32466
|
* This is licensed software from AccelByte Inc, for limitations
|
|
32477
32467
|
* and restrictions contact your company contract manager.
|
|
32478
32468
|
*/
|
|
32479
|
-
const RevokeEntitlement = mod.object({
|
|
32480
|
-
entitlementId: mod.string().nullish(),
|
|
32481
|
-
ownerId: mod.string().nullish(),
|
|
32482
|
-
type: mod.enum(['DURABLE', 'CONSUMABLE']).nullish(),
|
|
32483
|
-
clazz: mod.enum(['APP', 'ENTITLEMENT', 'CODE', 'SUBSCRIPTION', 'MEDIA', 'OPTIONBOX', 'LOOTBOX']).nullish()
|
|
32484
|
-
});
|
|
32469
|
+
const RevokeEntitlement = mod.object({ entitlementId: mod.string().nullish() });
|
|
32485
32470
|
|
|
32486
32471
|
/*
|
|
32487
32472
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -38752,6 +38737,17 @@ mod.enum([
|
|
|
38752
38737
|
CommonValidationErrorType.enum.alreadyUsed
|
|
38753
38738
|
]);
|
|
38754
38739
|
|
|
38740
|
+
/*
|
|
38741
|
+
* Copyright (c) 2020. AccelByte Inc. All Rights Reserved
|
|
38742
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
38743
|
+
* and restrictions contact your company contract manager.
|
|
38744
|
+
*/
|
|
38745
|
+
mod.enum([
|
|
38746
|
+
...ValidateLengthErrorType.options,
|
|
38747
|
+
CommonValidationErrorType.enum.invalidFormat,
|
|
38748
|
+
CommonValidationErrorType.enum.alreadyUsed
|
|
38749
|
+
]);
|
|
38750
|
+
|
|
38755
38751
|
/*
|
|
38756
38752
|
* Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
|
|
38757
38753
|
* This is licensed software from AccelByte Inc, for limitations
|
|
@@ -39775,16 +39771,13 @@ exports.ADtoForUnbanUserApiCall = ADtoForUnbanUserApiCall;
|
|
|
39775
39771
|
exports.ADtoForUpdateEqu8ConfigApiCall = ADtoForUpdateEqu8ConfigApiCall;
|
|
39776
39772
|
exports.ADtoObjectForEqu8UserBanStatus = ADtoObjectForEqu8UserBanStatus;
|
|
39777
39773
|
exports.ADtoObjectForEqu8UserStatus = ADtoObjectForEqu8UserStatus;
|
|
39778
|
-
exports.ADtoObjectForOrderCreationOptions = ADtoObjectForOrderCreationOptions;
|
|
39779
|
-
exports.ADtoObjectForQueryingXboxUserAchievements = ADtoObjectForQueryingXboxUserAchievements;
|
|
39780
|
-
exports.ADtoObjectForUnlockSteamAchievementApi = ADtoObjectForUnlockSteamAchievementApi;
|
|
39781
|
-
exports.ADtoObjectForUpdateXboxAchievementCompletePercentageApi = ADtoObjectForUpdateXboxAchievementCompletePercentageApi;
|
|
39782
39774
|
exports.ARCH = ARCH;
|
|
39783
39775
|
exports.Accelbyte = Accelbyte;
|
|
39784
39776
|
exports.AcceptAgreementRequest = AcceptAgreementRequest;
|
|
39785
39777
|
exports.AcceptAgreementResponse = AcceptAgreementResponse;
|
|
39786
39778
|
exports.AcceptedPoliciesRequest = AcceptedPoliciesRequest;
|
|
39787
39779
|
exports.AccountProgressionInfo = AccountProgressionInfo;
|
|
39780
|
+
exports.Achievement = Achievement;
|
|
39788
39781
|
exports.AchievementInfo = AchievementInfo;
|
|
39789
39782
|
exports.Action = Action;
|
|
39790
39783
|
exports.AddCountryGroupRequest = AddCountryGroupRequest;
|
|
@@ -39812,9 +39805,9 @@ exports.AssignUserV4Request = AssignUserV4Request;
|
|
|
39812
39805
|
exports.AssignedUserV4Response = AssignedUserV4Response;
|
|
39813
39806
|
exports.AuthenticatorKeyResponseV4 = AuthenticatorKeyResponseV4;
|
|
39814
39807
|
exports.AuthenticatorSecretKey = AuthenticatorSecretKey;
|
|
39815
|
-
exports.
|
|
39808
|
+
exports.AvailableComparison = AvailableComparison;
|
|
39816
39809
|
exports.AvailablePlatform = AvailablePlatform;
|
|
39817
|
-
exports.
|
|
39810
|
+
exports.AvailablePredicate = AvailablePredicate;
|
|
39818
39811
|
exports.AvatarSyncRequestV4 = AvatarSyncRequestV4;
|
|
39819
39812
|
exports.BUILDINFO_PLATFORM_ID = BUILDINFO_PLATFORM_ID;
|
|
39820
39813
|
exports.BackgroundOverlay = BackgroundOverlay;
|
|
@@ -40224,6 +40217,7 @@ exports.OptionBoxConfig = OptionBoxConfig;
|
|
|
40224
40217
|
exports.Order = Order;
|
|
40225
40218
|
exports.Order$ = Order$;
|
|
40226
40219
|
exports.OrderCreate = OrderCreate;
|
|
40220
|
+
exports.OrderCreationOptions = OrderCreationOptions;
|
|
40227
40221
|
exports.OrderGrantInfo = OrderGrantInfo;
|
|
40228
40222
|
exports.OrderHistoryInfo = OrderHistoryInfo;
|
|
40229
40223
|
exports.OrderHistoryInfoArray = OrderHistoryInfoArray;
|
|
@@ -40324,7 +40318,7 @@ exports.PolicyVersionObject = PolicyVersionObject;
|
|
|
40324
40318
|
exports.PolicyVersionWithLocalizedVersionObject = PolicyVersionWithLocalizedVersionObject;
|
|
40325
40319
|
exports.PopulatedItemInfo = PopulatedItemInfo;
|
|
40326
40320
|
exports.PreCheckUploadRequest = PreCheckUploadRequest;
|
|
40327
|
-
exports.
|
|
40321
|
+
exports.Predicate = Predicate;
|
|
40328
40322
|
exports.PredicateValidateResult = PredicateValidateResult;
|
|
40329
40323
|
exports.PublicKeyPresignedUrl = PublicKeyPresignedUrl;
|
|
40330
40324
|
exports.PublicThirdPartyPlatformInfo = PublicThirdPartyPlatformInfo;
|
|
@@ -40461,7 +40455,7 @@ exports.SsoSaml20$ = SsoSaml20$;
|
|
|
40461
40455
|
exports.StackableEntitlementInfo = StackableEntitlementInfo;
|
|
40462
40456
|
exports.StartMultipartUploadRequest = StartMultipartUploadRequest;
|
|
40463
40457
|
exports.StaticConfigs$ = StaticConfigs$;
|
|
40464
|
-
exports.
|
|
40458
|
+
exports.SteamAchievementUpdateRequest = SteamAchievementUpdateRequest;
|
|
40465
40459
|
exports.SteamDlcSyncRequest = SteamDlcSyncRequest;
|
|
40466
40460
|
exports.SteamIapConfig = SteamIapConfig;
|
|
40467
40461
|
exports.SteamIapConfigInfo = SteamIapConfigInfo;
|
|
@@ -40642,13 +40636,14 @@ exports.WalletTransactionPagingSlicedResult = WalletTransactionPagingSlicedResul
|
|
|
40642
40636
|
exports.WebLinkingResponse = WebLinkingResponse;
|
|
40643
40637
|
exports.WxPayConfigInfo = WxPayConfigInfo;
|
|
40644
40638
|
exports.WxPayConfigRequest = WxPayConfigRequest;
|
|
40639
|
+
exports.XblAchievementUpdateRequest = XblAchievementUpdateRequest;
|
|
40645
40640
|
exports.XblDlcSyncRequest = XblDlcSyncRequest;
|
|
40646
40641
|
exports.XblIapConfigInfo = XblIapConfigInfo;
|
|
40647
40642
|
exports.XblIapConfigRequest = XblIapConfigRequest;
|
|
40648
40643
|
exports.XblReconcileRequest = XblReconcileRequest;
|
|
40649
40644
|
exports.XblReconcileResult = XblReconcileResult;
|
|
40650
40645
|
exports.XblReconcileResultArray = XblReconcileResultArray;
|
|
40651
|
-
exports.
|
|
40646
|
+
exports.XblUserAchievements = XblUserAchievements;
|
|
40652
40647
|
exports.XsollaConfig = XsollaConfig;
|
|
40653
40648
|
exports.XsollaPaywallConfig = XsollaPaywallConfig;
|
|
40654
40649
|
exports.XsollaPaywallConfigRequest = XsollaPaywallConfigRequest;
|