@devvit/shared-types 0.11.0-next-2024-07-22-0a49bf500.0 → 0.11.0-next-2024-07-23-33f5f2eff.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared-types",
3
- "version": "0.11.0-next-2024-07-22-0a49bf500.0",
3
+ "version": "0.11.0-next-2024-07-23-33f5f2eff.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,14 +24,14 @@
24
24
  },
25
25
  "types": "./index.d.ts",
26
26
  "dependencies": {
27
- "@devvit/protos": "0.11.0-next-2024-07-22-0a49bf500.0",
27
+ "@devvit/protos": "0.11.0-next-2024-07-23-33f5f2eff.0",
28
28
  "jsonschema": "1.4.1",
29
29
  "uuid": "9.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@devvit/eslint-config": "0.11.0-next-2024-07-22-0a49bf500.0",
33
- "@devvit/repo-tools": "0.11.0-next-2024-07-22-0a49bf500.0",
34
- "@devvit/tsconfig": "0.11.0-next-2024-07-22-0a49bf500.0",
32
+ "@devvit/eslint-config": "0.11.0-next-2024-07-23-33f5f2eff.0",
33
+ "@devvit/repo-tools": "0.11.0-next-2024-07-23-33f5f2eff.0",
34
+ "@devvit/tsconfig": "0.11.0-next-2024-07-23-33f5f2eff.0",
35
35
  "@types/redis-mock": "0.17.1",
36
36
  "@types/uuid": "9.0.0",
37
37
  "eslint": "8.9.0",
@@ -45,5 +45,5 @@
45
45
  "directory": "dist"
46
46
  },
47
47
  "source": "./src/index.ts",
48
- "gitHead": "af71abf36a0a6c56d9a0db3622d799328e2859c5"
48
+ "gitHead": "e8f759ad82be4490bcdfac73b4ce3d3944bb1fe1"
49
49
  }
@@ -10,6 +10,8 @@ export type SKU = string;
10
10
  export type Product = {
11
11
  sku: SKU;
12
12
  price: number;
13
+ displayName: string;
14
+ description?: string;
13
15
  metadata: Readonly<Record<string, string>>;
14
16
  images?: {
15
17
  icon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../src/payments/Product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1E;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAQ5D;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAI7E"}
1
+ {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../src/payments/Product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1E;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAU5D;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAI7E"}
@@ -9,6 +9,8 @@ export function productFromProto(data) {
9
9
  return {
10
10
  sku: data.sku,
11
11
  price: data.price.amount, // In Reddit Gold
12
+ displayName: data.name,
13
+ description: data.description,
12
14
  metadata: data.productMetadata,
13
15
  };
14
16
  }