@mpgd/catalog 0.3.5 → 0.4.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { LogicalAdPlacementId, LogicalProductId, ProductType } from '@mpgd/platform';
2
- export type CatalogTarget = 'android' | 'ios' | 'ait';
3
- export type AdPlacementTarget = CatalogTarget;
2
+ export type CatalogTarget = 'android' | 'ios' | 'ait' | 'reddit';
3
+ export type AdPlacementTarget = Exclude<CatalogTarget, 'reddit'>;
4
4
  export type ProductGrant = {
5
5
  readonly type: 'currency';
6
6
  readonly currency: 'coin' | 'gem';
package/dist/index.js CHANGED
@@ -101,6 +101,11 @@ export const assertProductCatalog = (() => {
101
101
  path: _path + ".ios",
102
102
  expected: "(string | undefined)",
103
103
  value: input.ios
104
+ }, _errorFactory)) && (undefined === input.reddit || "string" === typeof input.reddit || _assertGuard_1._assertGuard(_exceptionable, {
105
+ method: "typia.createAssert",
106
+ path: _path + ".reddit",
107
+ expected: "(string | undefined)",
108
+ value: input.reddit
104
109
  }, _errorFactory));
105
110
  const _au0 = (input, _path, _exceptionable = true) => (() => {
106
111
  if ("currency" === input.type)
@@ -119,7 +124,7 @@ export const assertProductCatalog = (() => {
119
124
  const _io1 = input => "string" === typeof input.id && ("consumable" === input.type || "non_consumable" === input.type || "subscription" === input.type) && ("object" === typeof input.grant && null !== input.grant && _iu0(input.grant)) && ("object" === typeof input.platformProductIds && null !== input.platformProductIds && false === Array.isArray(input.platformProductIds) && _io4(input.platformProductIds));
120
125
  const _io2 = input => "currency" === input.type && ("coin" === input.currency || "gem" === input.currency) && "number" === typeof input.amount;
121
126
  const _io3 = input => "entitlement" === input.type && "string" === typeof input.entitlement;
122
- const _io4 = input => (undefined === input.ait || "string" === typeof input.ait) && (undefined === input.android || "string" === typeof input.android) && (undefined === input.ios || "string" === typeof input.ios);
127
+ const _io4 = input => (undefined === input.ait || "string" === typeof input.ait) && (undefined === input.android || "string" === typeof input.android) && (undefined === input.ios || "string" === typeof input.ios) && (undefined === input.reddit || "string" === typeof input.reddit);
123
128
  const _iu0 = input => (() => {
124
129
  if ("currency" === input.type)
125
130
  return _io2(input);
@@ -217,12 +222,12 @@ export const assertAdPlacements = (() => {
217
222
  }, _errorFactory)) && (("object" === typeof input.platformPlacementIds && null !== input.platformPlacementIds && false === Array.isArray(input.platformPlacementIds) || _assertGuard_1._assertGuard(_exceptionable, {
218
223
  method: "typia.createAssert",
219
224
  path: _path + ".platformPlacementIds",
220
- expected: "Partial<Record<CatalogTarget, string>>",
225
+ expected: "Partial<Record<AdPlacementTarget, string>>",
221
226
  value: input.platformPlacementIds
222
227
  }, _errorFactory)) && _ao5(input.platformPlacementIds, _path + ".platformPlacementIds", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
223
228
  method: "typia.createAssert",
224
229
  path: _path + ".platformPlacementIds",
225
- expected: "Partial<Record<CatalogTarget, string>>",
230
+ expected: "Partial<Record<AdPlacementTarget, string>>",
226
231
  value: input.platformPlacementIds
227
232
  }, _errorFactory));
228
233
  const _ao2 = (input, _path, _exceptionable = true) => ("continue" === input.type || _assertGuard_1._assertGuard(_exceptionable, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/catalog",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
4
4
  "description": "Product catalog and ad placement configuration schemas for mpgd games.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "typia": "13.0.2",
42
- "@mpgd/platform": "0.5.1"
42
+ "@mpgd/platform": "0.6.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "ttsc": "0.18.4",