@devvit/public-api 0.11.0-next-2024-08-15-37b3f7371.0 → 0.11.0-next-2024-08-19-689d51fc5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.json +3 -3
- package/package.json +7 -7
- package/public-api.d.ts +28 -0
- package/public-api.iife.js +92 -2
package/meta.json
CHANGED
@@ -8547,7 +8547,7 @@
|
|
8547
8547
|
"format": "esm"
|
8548
8548
|
},
|
8549
8549
|
"../protos/dist/types/devvit/payments/v1alpha/product.js": {
|
8550
|
-
"bytes":
|
8550
|
+
"bytes": 18854,
|
8551
8551
|
"imports": [
|
8552
8552
|
{
|
8553
8553
|
"path": "../../node_modules/protobufjs/minimal.js",
|
@@ -14053,7 +14053,7 @@
|
|
14053
14053
|
"bytesInOutput": 29854
|
14054
14054
|
},
|
14055
14055
|
"../protos/dist/types/devvit/payments/v1alpha/product.js": {
|
14056
|
-
"bytesInOutput":
|
14056
|
+
"bytesInOutput": 16812
|
14057
14057
|
},
|
14058
14058
|
"../protos/dist/types/devvit/payments/v1alpha/common.js": {
|
14059
14059
|
"bytesInOutput": 1229
|
@@ -14530,7 +14530,7 @@
|
|
14530
14530
|
"bytesInOutput": 370
|
14531
14531
|
}
|
14532
14532
|
},
|
14533
|
-
"bytes":
|
14533
|
+
"bytes": 14860165
|
14534
14534
|
}
|
14535
14535
|
}
|
14536
14536
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/public-api",
|
3
|
-
"version": "0.11.0-next-2024-08-
|
3
|
+
"version": "0.11.0-next-2024-08-19-689d51fc5.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
},
|
31
31
|
"types": "./index.d.ts",
|
32
32
|
"dependencies": {
|
33
|
-
"@devvit/protos": "0.11.0-next-2024-08-
|
34
|
-
"@devvit/shared-types": "0.11.0-next-2024-08-
|
33
|
+
"@devvit/protos": "0.11.0-next-2024-08-19-689d51fc5.0",
|
34
|
+
"@devvit/shared-types": "0.11.0-next-2024-08-19-689d51fc5.0",
|
35
35
|
"base64-js": "1.5.1",
|
36
36
|
"clone-deep": "4.0.1",
|
37
37
|
"core-js": "3.27.2",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
42
|
-
"@devvit/eslint-config": "0.11.0-next-2024-08-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-08-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-08-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-08-19-689d51fc5.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-08-19-689d51fc5.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-08-19-689d51fc5.0",
|
45
45
|
"@microsoft/api-extractor": "7.41.0",
|
46
46
|
"@reddit/faceplate-ui": "16.1.0",
|
47
47
|
"@types/clone-deep": "4.0.1",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
}
|
65
65
|
},
|
66
66
|
"source": "./src/index.ts",
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "4e0d11bcefd0c44ce4a4b01a22525ebc4edc51dd"
|
68
68
|
}
|
package/public-api.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AccountingType as AccountingType_2 } from '../../payments/v1alpha/product.js';
|
1
2
|
import { BanInfo_BanInfoAction as BanInfo_BanInfoAction_2 } from '../../../reddit/common.js';
|
2
3
|
import { BlockActionType as BlockActionType_2 } from '../../../../../index.js';
|
3
4
|
import { BlockAnimationDirection as BlockAnimationDirection_2 } from '../../../../../index.js';
|
@@ -326,6 +327,22 @@ declare const AccountDelete: {
|
|
326
327
|
fromPartial(object: DeepPartial_74<AccountDelete>): AccountDelete;
|
327
328
|
};
|
328
329
|
|
330
|
+
declare enum AccountingType {
|
331
|
+
ACCOUNTING_TYPE_UNSPECIFIED = 0,
|
332
|
+
/** ACCOUNTING_TYPE_INSTANT - Used immediately as it is purchased. */
|
333
|
+
ACCOUNTING_TYPE_INSTANT = 1,
|
334
|
+
/** ACCOUNTING_TYPE_DURABLE - It grants access indefinitely. */
|
335
|
+
ACCOUNTING_TYPE_DURABLE = 2,
|
336
|
+
/** ACCOUNTING_TYPE_CONSUMABLE - User can use the good at any time in the future but it is gone once it's used. */
|
337
|
+
ACCOUNTING_TYPE_CONSUMABLE = 3,
|
338
|
+
/** ACCOUNTING_TYPE_VALID_FOR_1D - Consumed over a fixed period of time. */
|
339
|
+
ACCOUNTING_TYPE_VALID_FOR_1D = 4,
|
340
|
+
ACCOUNTING_TYPE_VALID_FOR_7D = 5,
|
341
|
+
ACCOUNTING_TYPE_VALID_FOR_30D = 6,
|
342
|
+
ACCOUNTING_TYPE_VALID_FOR_1Y = 7,
|
343
|
+
UNRECOGNIZED = -1
|
344
|
+
}
|
345
|
+
|
329
346
|
/**
|
330
347
|
* Subclasses are expected to call config.init(), provides(), and uses(). It
|
331
348
|
* is erroneous to not override the constructor. Override, invoke
|
@@ -3390,6 +3407,7 @@ declare const BuildPackDefinition: {
|
|
3390
3407
|
} | undefined;
|
3391
3408
|
environment?: Environment_2;
|
3392
3409
|
description?: string;
|
3410
|
+
accountingType?: AccountingType_2;
|
3393
3411
|
productMetadata?: {
|
3394
3412
|
[x: string]: string | undefined;
|
3395
3413
|
};
|
@@ -3495,6 +3513,7 @@ declare const BuildPackDefinition: {
|
|
3495
3513
|
} | undefined;
|
3496
3514
|
environment?: Environment_2;
|
3497
3515
|
description?: string;
|
3516
|
+
accountingType?: AccountingType_2;
|
3498
3517
|
productMetadata?: {
|
3499
3518
|
[x: string]: string | undefined;
|
3500
3519
|
};
|
@@ -3657,6 +3676,7 @@ declare const BuildPackDefinition: {
|
|
3657
3676
|
} | undefined;
|
3658
3677
|
environment?: Environment_2;
|
3659
3678
|
description?: string;
|
3679
|
+
accountingType?: AccountingType_2;
|
3660
3680
|
productMetadata?: {
|
3661
3681
|
[x: string]: string | undefined;
|
3662
3682
|
};
|
@@ -3762,6 +3782,7 @@ declare const BuildPackDefinition: {
|
|
3762
3782
|
} | undefined;
|
3763
3783
|
environment?: Environment_2;
|
3764
3784
|
description?: string;
|
3785
|
+
accountingType?: AccountingType_2;
|
3765
3786
|
productMetadata?: {
|
3766
3787
|
[x: string]: string | undefined;
|
3767
3788
|
};
|
@@ -17046,6 +17067,7 @@ declare const LinkerDefinition: {
|
|
17046
17067
|
} | undefined;
|
17047
17068
|
environment?: Environment_2;
|
17048
17069
|
description?: string;
|
17070
|
+
accountingType?: AccountingType_2;
|
17049
17071
|
productMetadata?: {
|
17050
17072
|
[x: string]: string | undefined;
|
17051
17073
|
};
|
@@ -17129,6 +17151,7 @@ declare const LinkerDefinition: {
|
|
17129
17151
|
} | undefined;
|
17130
17152
|
environment?: Environment_2;
|
17131
17153
|
description?: string;
|
17154
|
+
accountingType?: AccountingType_2;
|
17132
17155
|
productMetadata?: {
|
17133
17156
|
[x: string]: string | undefined;
|
17134
17157
|
};
|
@@ -41654,6 +41677,7 @@ declare const ProducerDefinition: {
|
|
41654
41677
|
|
41655
41678
|
declare const ProducerServiceName = "devvit.actor.producer.Producer";
|
41656
41679
|
|
41680
|
+
/** Mapping from payments API Product : https://github.snooguts.net/reddit/reddit-service-pay-api/blob/main/api/protos/reddit/xpaymentsplatform/payapi/v1/common.proto#L7 */
|
41657
41681
|
declare interface Product {
|
41658
41682
|
/** the developer defined identifer for the product */
|
41659
41683
|
sku: string;
|
@@ -41665,6 +41689,8 @@ declare interface Product {
|
|
41665
41689
|
environment: Environment;
|
41666
41690
|
/** Human-readable description of the product */
|
41667
41691
|
description: string;
|
41692
|
+
/** the accounting treatment of the product */
|
41693
|
+
accountingType: AccountingType;
|
41668
41694
|
/** tags associated with the product */
|
41669
41695
|
productMetadata: {
|
41670
41696
|
[key: string]: string;
|
@@ -47712,6 +47738,7 @@ declare const ResolverDefinition: {
|
|
47712
47738
|
} | undefined;
|
47713
47739
|
environment?: Environment_2;
|
47714
47740
|
description?: string;
|
47741
|
+
accountingType?: AccountingType_2;
|
47715
47742
|
productMetadata?: {
|
47716
47743
|
[x: string]: string | undefined;
|
47717
47744
|
};
|
@@ -47795,6 +47822,7 @@ declare const ResolverDefinition: {
|
|
47795
47822
|
} | undefined;
|
47796
47823
|
environment?: Environment_2;
|
47797
47824
|
description?: string;
|
47825
|
+
accountingType?: AccountingType_2;
|
47798
47826
|
productMetadata?: {
|
47799
47827
|
[x: string]: string | undefined;
|
47800
47828
|
};
|