@axinom/mosaic-messages 0.9.0 → 0.10.0-rc.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.
Files changed (18) hide show
  1. package/dist/generated/schemas/payloads/monetization/events/index.d.ts +32 -0
  2. package/dist/generated/schemas/payloads/monetization/events/index.d.ts.map +1 -1
  3. package/dist/generated/schemas/payloads/monetization/events/subscription-plan-published-event.json +39 -0
  4. package/dist/generated/types/payloads/monetization/events/subscription-plan-published-event.d.ts +5 -0
  5. package/dist/generated/types/payloads/monetization/events/subscription-plan-published-event.d.ts.map +1 -1
  6. package/dist/generated/types/payloads/monetization/types/index.d.ts +2 -0
  7. package/dist/generated/types/payloads/monetization/types/index.d.ts.map +1 -1
  8. package/dist/generated/types/payloads/monetization/types/index.js +2 -0
  9. package/dist/generated/types/payloads/monetization/types/index.js.map +1 -1
  10. package/dist/generated/types/payloads/monetization/types/monetization-image-type.d.ts +2 -0
  11. package/dist/generated/types/payloads/monetization/types/monetization-image-type.d.ts.map +1 -0
  12. package/dist/generated/types/payloads/monetization/types/monetization-image-type.js +3 -0
  13. package/dist/generated/types/payloads/monetization/types/monetization-image-type.js.map +1 -0
  14. package/dist/generated/types/payloads/monetization/types/monetization-image.d.ts +23 -0
  15. package/dist/generated/types/payloads/monetization/types/monetization-image.d.ts.map +1 -0
  16. package/dist/generated/types/payloads/monetization/types/monetization-image.js +3 -0
  17. package/dist/generated/types/payloads/monetization/types/monetization-image.js.map +1 -0
  18. package/package.json +4 -4
@@ -327,6 +327,38 @@ export declare const SubscriptionPlanPublishedEventSchema: {
327
327
  description: string;
328
328
  };
329
329
  };
330
+ images: {
331
+ description: string;
332
+ type: string;
333
+ items: {
334
+ description: string;
335
+ type: string;
336
+ title: string;
337
+ additionalProperties: boolean;
338
+ required: string[];
339
+ properties: {
340
+ type: {
341
+ description: string;
342
+ type: string;
343
+ title: string;
344
+ enum: string[];
345
+ };
346
+ path: {
347
+ description: string;
348
+ type: string;
349
+ pattern: string;
350
+ };
351
+ width: {
352
+ description: string;
353
+ type: string;
354
+ };
355
+ height: {
356
+ description: string;
357
+ type: string;
358
+ };
359
+ };
360
+ };
361
+ };
330
362
  };
331
363
  definitions: {
332
364
  payment_plan: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/monetization/events/index.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyB,CAAC;AACnE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAA2B,CAAC;AACvE,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACjG,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAC;AACrG,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAC;AAC/F,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAC;AACnG,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAC;AACnF,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAC;AACnF,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAC;AACnG,eAAO,MAAM,8CAA8C;;;;;;;;CAA2C,CAAC;AACvG,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAC;AACnG,eAAO,MAAM,8CAA8C;;;;;;;;CAA2C,CAAC"}
@@ -195,6 +195,45 @@
195
195
  "pattern": "^$|.*\\S.*",
196
196
  "description": "String of minimum length of 1 character, which is also cannot all whitespace characters."
197
197
  }
198
+ },
199
+ "images": {
200
+ "description": "Array of images associated with the subscription plan.",
201
+ "type": "array",
202
+ "items": {
203
+ "description": "Image metadata.",
204
+ "type": "object",
205
+ "title": "monetization_image",
206
+ "additionalProperties": false,
207
+ "required": [
208
+ "type",
209
+ "path",
210
+ "width",
211
+ "height"
212
+ ],
213
+ "properties": {
214
+ "type": {
215
+ "description": "Type of the image.",
216
+ "type": "string",
217
+ "title": "monetization_image_type",
218
+ "enum": [
219
+ "COVER"
220
+ ]
221
+ },
222
+ "path": {
223
+ "description": "URI to the image file.",
224
+ "type": "string",
225
+ "pattern": "/[^/]+(.*)"
226
+ },
227
+ "width": {
228
+ "description": "Width of the image in pixels.",
229
+ "type": "integer"
230
+ },
231
+ "height": {
232
+ "description": "Height of the image in pixels.",
233
+ "type": "integer"
234
+ }
235
+ }
236
+ }
198
237
  }
199
238
  },
200
239
  "definitions": {
@@ -1,5 +1,6 @@
1
1
  import { PaymentPlan } from '../types/payment-plan';
2
2
  import { SubscriptionPlanProviderConfig } from '../types/subscription-plan-provider-config';
3
+ import { MonetizationImage } from '../types/monetization-image';
3
4
  /**
4
5
  * Definition of the subscription plan publish format.
5
6
  */
@@ -32,5 +33,9 @@ export interface SubscriptionPlanPublishedEvent {
32
33
  * The list of claims sets which this subscription plan grants.
33
34
  */
34
35
  claim_set_keys?: Array<string>;
36
+ /**
37
+ * Array of images associated with the subscription plan.
38
+ */
39
+ images?: Array<MonetizationImage>;
35
40
  }
36
41
  //# sourceMappingURL=subscription-plan-published-event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-plan-published-event.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/events/subscription-plan-published-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAA;AAC3F;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAClC;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IACxD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"subscription-plan-published-event.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/events/subscription-plan-published-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAA;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAClC;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IACxD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACnC"}
@@ -2,6 +2,8 @@ export * from './claim-definition';
2
2
  export * from './claim-definition-group';
3
3
  export * from './claim-selection-mode';
4
4
  export * from './error-details';
5
+ export * from './monetization-image';
6
+ export * from './monetization-image-type';
5
7
  export * from './payment-plan';
6
8
  export * from './payment-plan-price';
7
9
  export * from './payment-plan-provider-config';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,qCAAqC,CAAC"}
@@ -14,6 +14,8 @@ __exportStar(require("./claim-definition"), exports);
14
14
  __exportStar(require("./claim-definition-group"), exports);
15
15
  __exportStar(require("./claim-selection-mode"), exports);
16
16
  __exportStar(require("./error-details"), exports);
17
+ __exportStar(require("./monetization-image"), exports);
18
+ __exportStar(require("./monetization-image-type"), exports);
17
19
  __exportStar(require("./payment-plan"), exports);
18
20
  __exportStar(require("./payment-plan-price"), exports);
19
21
  __exportStar(require("./payment-plan-provider-config"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,yDAAuC;AACvC,kDAAgC;AAChC,iDAA+B;AAC/B,uDAAqC;AACrC,iEAA+C;AAC/C,qDAAmC;AACnC,gDAA8B;AAC9B,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,yDAAuC;AACvC,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,uDAAqC;AACrC,iEAA+C;AAC/C,qDAAmC;AACnC,gDAA8B;AAC9B,sEAAoD"}
@@ -0,0 +1,2 @@
1
+ export declare type MonetizationImageType = "COVER";
2
+ //# sourceMappingURL=monetization-image-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monetization-image-type.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/monetization-image-type.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=monetization-image-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monetization-image-type.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/monetization-image-type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { MonetizationImageType } from './monetization-image-type';
2
+ /**
3
+ * Image metadata.
4
+ */
5
+ export interface MonetizationImage {
6
+ /**
7
+ * Type of the image.
8
+ */
9
+ type: MonetizationImageType;
10
+ /**
11
+ * URI to the image file.
12
+ */
13
+ path: string;
14
+ /**
15
+ * Width of the image in pixels.
16
+ */
17
+ width: number;
18
+ /**
19
+ * Height of the image in pixels.
20
+ */
21
+ height: number;
22
+ }
23
+ //# sourceMappingURL=monetization-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monetization-image.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/monetization-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=monetization-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monetization-image.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/monetization/types/monetization-image.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-messages",
3
- "version": "0.9.0",
3
+ "version": "0.10.0-rc.0",
4
4
  "description": "Shared types for Axinom Mosaic service messages",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -27,8 +27,8 @@
27
27
  "dev": "concurrently --names \"codegen,tsc\" \"yarn codegen:watch\" \"yarn build:compile:watch\""
28
28
  },
29
29
  "devDependencies": {
30
- "@axinom/mosaic-cli": "^0.7.0",
31
- "@axinom/mosaic-message-bus-abstractions": "^0.2.0",
30
+ "@axinom/mosaic-cli": "^0.7.1-rc.0",
31
+ "@axinom/mosaic-message-bus-abstractions": "^0.2.1-rc.0",
32
32
  "@types/glob": "^7.1.3",
33
33
  "concurrently": "^5.3.0",
34
34
  "rimraf": "^3.0.2",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "f80cb6c17c7fe9993994473b513b568c7ae718d8"
43
+ "gitHead": "d80668c6966677fb7142fe354e0df80db9d6273f"
44
44
  }