@axinom/mosaic-messages 0.34.0-rc.5 → 0.35.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 (67) hide show
  1. package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.d.ts +3 -0
  2. package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.d.ts.map +1 -1
  3. package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.js +3 -0
  4. package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.js.map +1 -1
  5. package/dist/generated/schemas/payloads/localization/commands/index.d.ts +75 -0
  6. package/dist/generated/schemas/payloads/localization/commands/index.d.ts.map +1 -1
  7. package/dist/generated/schemas/payloads/localization/commands/index.js +3 -1
  8. package/dist/generated/schemas/payloads/localization/commands/index.js.map +1 -1
  9. package/dist/generated/schemas/payloads/localization/commands/localize-entity-command.json +90 -0
  10. package/dist/generated/schemas/payloads/localization/events/index.d.ts +82 -0
  11. package/dist/generated/schemas/payloads/localization/events/index.d.ts.map +1 -1
  12. package/dist/generated/schemas/payloads/localization/events/index.js +5 -1
  13. package/dist/generated/schemas/payloads/localization/events/index.js.map +1 -1
  14. package/dist/generated/schemas/payloads/localization/events/localize-entity-failed-event.json +37 -0
  15. package/dist/generated/schemas/payloads/localization/events/localize-entity-finished-event.json +56 -0
  16. package/dist/generated/types/payloads/localization/commands/index.d.ts +3 -0
  17. package/dist/generated/types/payloads/localization/commands/index.d.ts.map +1 -1
  18. package/dist/generated/types/payloads/localization/commands/index.js +3 -0
  19. package/dist/generated/types/payloads/localization/commands/index.js.map +1 -1
  20. package/dist/generated/types/payloads/localization/commands/localize-entity-command.d.ts +23 -0
  21. package/dist/generated/types/payloads/localization/commands/localize-entity-command.d.ts.map +1 -0
  22. package/dist/generated/types/payloads/localization/commands/localize-entity-command.js +3 -0
  23. package/dist/generated/types/payloads/localization/commands/localize-entity-command.js.map +1 -0
  24. package/dist/generated/types/payloads/localization/events/index.d.ts +8 -2
  25. package/dist/generated/types/payloads/localization/events/index.d.ts.map +1 -1
  26. package/dist/generated/types/payloads/localization/events/index.js +6 -0
  27. package/dist/generated/types/payloads/localization/events/index.js.map +1 -1
  28. package/dist/generated/types/payloads/localization/events/localize-entity-failed-event.d.ts +22 -0
  29. package/dist/generated/types/payloads/localization/events/localize-entity-failed-event.d.ts.map +1 -0
  30. package/dist/generated/types/payloads/localization/events/localize-entity-failed-event.js +3 -0
  31. package/dist/generated/types/payloads/localization/events/localize-entity-failed-event.js.map +1 -0
  32. package/dist/generated/types/payloads/localization/events/localize-entity-finished-event.d.ts +26 -0
  33. package/dist/generated/types/payloads/localization/events/localize-entity-finished-event.d.ts.map +1 -0
  34. package/dist/generated/types/payloads/localization/events/localize-entity-finished-event.js +3 -0
  35. package/dist/generated/types/payloads/localization/events/localize-entity-finished-event.js.map +1 -0
  36. package/dist/generated/types/payloads/localization/types/entity-localization-field-state.d.ts +5 -0
  37. package/dist/generated/types/payloads/localization/types/entity-localization-field-state.d.ts.map +1 -0
  38. package/dist/generated/types/payloads/localization/types/entity-localization-field-state.js +3 -0
  39. package/dist/generated/types/payloads/localization/types/entity-localization-field-state.js.map +1 -0
  40. package/dist/generated/types/payloads/localization/types/entity-localization-field.d.ts +19 -0
  41. package/dist/generated/types/payloads/localization/types/entity-localization-field.d.ts.map +1 -0
  42. package/dist/generated/types/payloads/localization/types/entity-localization-field.js +3 -0
  43. package/dist/generated/types/payloads/localization/types/entity-localization-field.js.map +1 -0
  44. package/dist/generated/types/payloads/localization/types/entity-localization.d.ts +15 -0
  45. package/dist/generated/types/payloads/localization/types/entity-localization.d.ts.map +1 -0
  46. package/dist/generated/types/payloads/localization/types/entity-localization.js +3 -0
  47. package/dist/generated/types/payloads/localization/types/entity-localization.js.map +1 -0
  48. package/dist/generated/types/payloads/localization/types/index.d.ts +3 -0
  49. package/dist/generated/types/payloads/localization/types/index.d.ts.map +1 -1
  50. package/dist/generated/types/payloads/localization/types/index.js +3 -0
  51. package/dist/generated/types/payloads/localization/types/index.js.map +1 -1
  52. package/package.json +4 -4
  53. package/src/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.ts +15 -0
  54. package/src/generated/schemas/payloads/localization/commands/index.ts +2 -0
  55. package/src/generated/schemas/payloads/localization/commands/localize-entity-command.json +90 -0
  56. package/src/generated/schemas/payloads/localization/events/index.ts +5 -1
  57. package/src/generated/schemas/payloads/localization/events/localize-entity-failed-event.json +37 -0
  58. package/src/generated/schemas/payloads/localization/events/localize-entity-finished-event.json +56 -0
  59. package/src/generated/types/payloads/localization/commands/index.ts +3 -0
  60. package/src/generated/types/payloads/localization/commands/localize-entity-command.ts +22 -0
  61. package/src/generated/types/payloads/localization/events/index.ts +8 -2
  62. package/src/generated/types/payloads/localization/events/localize-entity-failed-event.ts +21 -0
  63. package/src/generated/types/payloads/localization/events/localize-entity-finished-event.ts +25 -0
  64. package/src/generated/types/payloads/localization/types/entity-localization-field-state.ts +4 -0
  65. package/src/generated/types/payloads/localization/types/entity-localization-field.ts +18 -0
  66. package/src/generated/types/payloads/localization/types/entity-localization.ts +14 -0
  67. package/src/generated/types/payloads/localization/types/index.ts +3 -0
@@ -23,6 +23,8 @@ __exportStar(require("./localization-service-disable-failed-event"), exports);
23
23
  __exportStar(require("./localization-service-disable-finished-event"), exports);
24
24
  __exportStar(require("./localization-service-enable-failed-event"), exports);
25
25
  __exportStar(require("./localization-service-enable-finished-event"), exports);
26
+ __exportStar(require("./localize-entity-failed-event"), exports);
27
+ __exportStar(require("./localize-entity-finished-event"), exports);
26
28
  var LocalizationEventsSchemas;
27
29
  (function (LocalizationEventsSchemas) {
28
30
  LocalizationEventsSchemas["EntityDefinitionDeclareFailedEvent"] = "payloads/localization/events/entity-definition-declare-failed-event.json";
@@ -33,6 +35,8 @@ var LocalizationEventsSchemas;
33
35
  LocalizationEventsSchemas["LocalizationServiceDisableFinishedEvent"] = "payloads/localization/events/localization-service-disable-finished-event.json";
34
36
  LocalizationEventsSchemas["LocalizationServiceEnableFailedEvent"] = "payloads/localization/events/localization-service-enable-failed-event.json";
35
37
  LocalizationEventsSchemas["LocalizationServiceEnableFinishedEvent"] = "payloads/localization/events/localization-service-enable-finished-event.json";
38
+ LocalizationEventsSchemas["LocalizeEntityFailedEvent"] = "payloads/localization/events/localize-entity-failed-event.json";
39
+ LocalizationEventsSchemas["LocalizeEntityFinishedEvent"] = "payloads/localization/events/localize-entity-finished-event.json";
36
40
  })(LocalizationEventsSchemas = exports.LocalizationEventsSchemas || (exports.LocalizationEventsSchemas = {}));
37
41
  var LocalizationEventsTypes;
38
42
  (function (LocalizationEventsTypes) {
@@ -44,5 +48,7 @@ var LocalizationEventsTypes;
44
48
  LocalizationEventsTypes["LocalizationServiceDisableFinishedEvent"] = "LocalizationServiceDisableFinishedEvent";
45
49
  LocalizationEventsTypes["LocalizationServiceEnableFailedEvent"] = "LocalizationServiceEnableFailedEvent";
46
50
  LocalizationEventsTypes["LocalizationServiceEnableFinishedEvent"] = "LocalizationServiceEnableFinishedEvent";
51
+ LocalizationEventsTypes["LocalizeEntityFailedEvent"] = "LocalizeEntityFailedEvent";
52
+ LocalizationEventsTypes["LocalizeEntityFinishedEvent"] = "LocalizeEntityFinishedEvent";
47
53
  })(LocalizationEventsTypes = exports.LocalizationEventsTypes || (exports.LocalizationEventsTypes = {}));
48
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,6EAA2D;AAC3D,0EAAwD;AACxD,4EAA0D;AAC1D,8EAA4D;AAC5D,gFAA8D;AAC9D,6EAA2D;AAC3D,+EAA6D;AAE7D,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,4IAA+G,CAAA;IAC/G,gJAAmH,CAAA;IACnH,0IAA6G,CAAA;IAC7G,8IAAiH,CAAA;IACjH,kJAAqH,CAAA;IACrH,sJAAyH,CAAA;IACzH,gJAAmH,CAAA;IACnH,oJAAuH,CAAA;AACzH,CAAC,EATW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QASpC;AAED,IAAY,uBASX;AATD,WAAY,uBAAuB;IACjC,oGAAyE,CAAA;IACzE,wGAA6E,CAAA;IAC7E,kGAAuE,CAAA;IACvE,sGAA2E,CAAA;IAC3E,0GAA+E,CAAA;IAC/E,8GAAmF,CAAA;IACnF,wGAA6E,CAAA;IAC7E,4GAAiF,CAAA;AACnF,CAAC,EATW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QASlC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,6EAA2D;AAC3D,0EAAwD;AACxD,4EAA0D;AAC1D,8EAA4D;AAC5D,gFAA8D;AAC9D,6EAA2D;AAC3D,+EAA6D;AAC7D,iEAA+C;AAC/C,mEAAiD;AAEjD,IAAY,yBAWX;AAXD,WAAY,yBAAyB;IACnC,4IAA+G,CAAA;IAC/G,gJAAmH,CAAA;IACnH,0IAA6G,CAAA;IAC7G,8IAAiH,CAAA;IACjH,kJAAqH,CAAA;IACrH,sJAAyH,CAAA;IACzH,gJAAmH,CAAA;IACnH,oJAAuH,CAAA;IACvH,yHAA4F,CAAA;IAC5F,6HAAgG,CAAA;AAClG,CAAC,EAXW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAWpC;AAED,IAAY,uBAWX;AAXD,WAAY,uBAAuB;IACjC,oGAAyE,CAAA;IACzE,wGAA6E,CAAA;IAC7E,kGAAuE,CAAA;IACvE,sGAA2E,CAAA;IAC3E,0GAA+E,CAAA;IAC/E,8GAAmF,CAAA;IACnF,wGAA6E,CAAA;IAC7E,4GAAiF,CAAA;IACjF,kFAAuD,CAAA;IACvD,sFAA2D,CAAA;AAC7D,CAAC,EAXW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAWlC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Localize entity failed event schema.
3
+ */
4
+ export interface LocalizeEntityFailedEvent {
5
+ /**
6
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
7
+ */
8
+ service_id: string;
9
+ /**
10
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
11
+ */
12
+ entity_type: string;
13
+ /**
14
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
15
+ */
16
+ entity_id: string;
17
+ /**
18
+ * Message that describes a reason for command processing failure.
19
+ */
20
+ message: string;
21
+ }
22
+ //# sourceMappingURL=localize-entity-failed-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localize-entity-failed-event.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/events/localize-entity-failed-event.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=localize-entity-failed-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localize-entity-failed-event.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/events/localize-entity-failed-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Localize entity finished event schema.
3
+ */
4
+ export interface LocalizeEntityFinishedEvent {
5
+ /**
6
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
7
+ */
8
+ service_id: string;
9
+ /**
10
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
11
+ */
12
+ entity_type: string;
13
+ /**
14
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
15
+ */
16
+ entity_id: string;
17
+ /**
18
+ * An array of language tags that were skipped. This might include tags for the default or not configured locales.
19
+ */
20
+ skipped_language_tags: string[];
21
+ /**
22
+ * An array of language tags that were used for localization.
23
+ */
24
+ processed_language_tags: string[];
25
+ }
26
+ //# sourceMappingURL=localize-entity-finished-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localize-entity-finished-event.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/events/localize-entity-finished-event.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC;;OAEG;IACH,uBAAuB,EAAE,MAAM,EAAE,CAAC;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=localize-entity-finished-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localize-entity-finished-event.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/events/localize-entity-finished-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The state of a localized field for a specific locale.
3
+ */
4
+ export type EntityLocalizationFieldState = "UNTRANSLATED" | "REVIEW_PENDING" | "APPROVED" | "REJECTED";
5
+ //# sourceMappingURL=entity-localization-field-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-localization-field-state.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-localization-field-state.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,cAAc,GAAG,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entity-localization-field-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-localization-field-state.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-localization-field-state.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { EntityLocalizationFieldState } from './entity-localization-field-state';
2
+ /**
3
+ * Field that will be set for the localized entity.
4
+ */
5
+ export interface EntityLocalizationField {
6
+ /**
7
+ * The name of a localized field for a specific locale.
8
+ */
9
+ field_name: string;
10
+ /**
11
+ * The value of a localized field for a specific locale.
12
+ */
13
+ field_value?: string;
14
+ /**
15
+ * The state of a localized field for a specific locale.
16
+ */
17
+ state?: EntityLocalizationFieldState;
18
+ }
19
+ //# sourceMappingURL=entity-localization-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-localization-field.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-localization-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,4BAA4B,CAAC;CACtC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entity-localization-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-localization-field.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-localization-field.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { EntityLocalizationField } from './entity-localization-field';
2
+ /**
3
+ * The localization for a single locale.
4
+ */
5
+ export interface EntityLocalization {
6
+ /**
7
+ * The language code of the locale.
8
+ */
9
+ language_tag: string;
10
+ /**
11
+ * An array of objects containing fields data for specific locales.
12
+ */
13
+ fields: EntityLocalizationField[];
14
+ }
15
+ //# sourceMappingURL=entity-localization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-localization.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-localization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,uBAAuB,EAAE,CAAC;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entity-localization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-localization.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-localization.ts"],"names":[],"mappings":""}
@@ -1,4 +1,7 @@
1
1
  export * from './entity-field-definition';
2
+ export * from './entity-localization';
3
+ export * from './entity-localization-field';
4
+ export * from './entity-localization-field-state';
2
5
  export * from './field-definition-field-type';
3
6
  export * from './field-definition-field-validation-rule';
4
7
  export * from './field-definition-ui-field-type';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC"}
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entity-field-definition"), exports);
18
+ __exportStar(require("./entity-localization"), exports);
19
+ __exportStar(require("./entity-localization-field"), exports);
20
+ __exportStar(require("./entity-localization-field-state"), exports);
18
21
  __exportStar(require("./field-definition-field-type"), exports);
19
22
  __exportStar(require("./field-definition-field-validation-rule"), exports);
20
23
  __exportStar(require("./field-definition-ui-field-type"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,mEAAiD;AACjD,qEAAmD;AACnD,yEAAuD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,wDAAsC;AACtC,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,2EAAyD;AACzD,mEAAiD;AACjD,qEAAmD;AACnD,yEAAuD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-messages",
3
- "version": "0.34.0-rc.5",
3
+ "version": "0.35.0-rc.0",
4
4
  "description": "Shared types for Axinom Mosaic service messages",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -29,8 +29,8 @@
29
29
  "dev": "concurrently --names \"codegen,tsc\" \"yarn codegen:watch\" \"yarn build:compile:watch\""
30
30
  },
31
31
  "devDependencies": {
32
- "@axinom/mosaic-cli": "^0.24.0-rc.5",
33
- "@axinom/mosaic-message-bus-abstractions": "^0.5.11-rc.5",
32
+ "@axinom/mosaic-cli": "^0.25.0-rc.0",
33
+ "@axinom/mosaic-message-bus-abstractions": "^0.5.12-rc.0",
34
34
  "@types/glob": "^7.1.3",
35
35
  "concurrently": "^5.3.0",
36
36
  "rimraf": "^3.0.2",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "8a9ad3cb8a296d5ef91e45bc07c4f0836f82dead"
45
+ "gitHead": "4ec8f27911162c9f12edd2f061e194ec3daaf51c"
46
46
  }
@@ -16,11 +16,26 @@ export class LocalizationServiceMultiTenantMessagingSettings extends MultiTenant
16
16
  'localization_source_entity:upsert',
17
17
  '*.*.localization_source_entity.upsert'
18
18
  );
19
+ public static LocalizeEntity = new LocalizationServiceMultiTenantMessagingSettings(
20
+ 'LocalizeEntity',
21
+ 'entity:localize',
22
+ '*.*.entity.localize'
23
+ );
19
24
  public static DeleteLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings(
20
25
  'DeleteLocalizationSourceEntity',
21
26
  'localization_source_entity:delete',
22
27
  '*.*.localization_source_entity.delete'
23
28
  );
29
+ public static LocalizeEntityFinished = new LocalizationServiceMultiTenantMessagingSettings(
30
+ 'LocalizeEntityFinished',
31
+ 'entity:localize_finished',
32
+ '*.*.entity.localize_finished'
33
+ );
34
+ public static LocalizeEntityFailed = new LocalizationServiceMultiTenantMessagingSettings(
35
+ 'LocalizeEntityFailed',
36
+ 'entity:localize_failed',
37
+ '*.*.entity.localize_failed'
38
+ );
24
39
  public static EntityDefinitionDeclareFinished = new LocalizationServiceMultiTenantMessagingSettings(
25
40
  'EntityDefinitionDeclareFinished',
26
41
  'entity_definition:declare_finished',
@@ -3,6 +3,7 @@ import * as DeleteEntityDefinitionCommand from './delete-entity-definition-comma
3
3
  import * as DeleteLocalizationSourceEntityCommand from './delete-localization-source-entity-command.json';
4
4
  import * as LocalizationServiceDisableCommand from './localization-service-disable-command.json';
5
5
  import * as LocalizationServiceEnableCommand from './localization-service-enable-command.json';
6
+ import * as LocalizeEntityCommand from './localize-entity-command.json';
6
7
  import * as UpsertLocalizationSourceEntityCommand from './upsert-localization-source-entity-command.json';
7
8
 
8
9
  export const DeclareEntityDefinitionCommandSchema = DeclareEntityDefinitionCommand;
@@ -10,4 +11,5 @@ export const DeleteEntityDefinitionCommandSchema = DeleteEntityDefinitionCommand
10
11
  export const DeleteLocalizationSourceEntityCommandSchema = DeleteLocalizationSourceEntityCommand;
11
12
  export const LocalizationServiceDisableCommandSchema = LocalizationServiceDisableCommand;
12
13
  export const LocalizationServiceEnableCommandSchema = LocalizationServiceEnableCommand;
14
+ export const LocalizeEntityCommandSchema = LocalizeEntityCommand;
13
15
  export const UpsertLocalizationSourceEntityCommandSchema = UpsertLocalizationSourceEntityCommand;
@@ -0,0 +1,90 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "localize_entity_command",
5
+ "description": "Localize entity command schema.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "service_id",
9
+ "entity_type",
10
+ "entity_id",
11
+ "localizations"
12
+ ],
13
+ "properties": {
14
+ "service_id": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "pattern": "^$|.*\\S.*",
18
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
19
+ },
20
+ "entity_type": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "pattern": "^$|.*\\S.*",
24
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
25
+ },
26
+ "entity_id": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "pattern": "^$|.*\\S.*",
30
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
31
+ },
32
+ "localizations": {
33
+ "type": "array",
34
+ "description": "An array of localizations for multiple locales.",
35
+ "additionalItems": false,
36
+ "minItems": 1,
37
+ "items": {
38
+ "type": "object",
39
+ "title": "entity_localization",
40
+ "description": "The localization for a single locale.",
41
+ "additionalProperties": false,
42
+ "required": [
43
+ "language_tag",
44
+ "fields"
45
+ ],
46
+ "properties": {
47
+ "language_tag": {
48
+ "type": "string",
49
+ "description": "The language code of the locale."
50
+ },
51
+ "fields": {
52
+ "type": "array",
53
+ "description": "An array of objects containing fields data for specific locales.",
54
+ "additionalItems": false,
55
+ "items": {
56
+ "type": "object",
57
+ "title": "entity_localization_field",
58
+ "description": "Field that will be set for the localized entity.",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "field_name"
62
+ ],
63
+ "properties": {
64
+ "field_name": {
65
+ "type": "string",
66
+ "description": "The name of a localized field for a specific locale."
67
+ },
68
+ "field_value": {
69
+ "type": "string",
70
+ "description": "The value of a localized field for a specific locale."
71
+ },
72
+ "state": {
73
+ "type": "string",
74
+ "title": "entity_localization_field_state",
75
+ "enum": [
76
+ "UNTRANSLATED",
77
+ "REVIEW_PENDING",
78
+ "APPROVED",
79
+ "REJECTED"
80
+ ],
81
+ "description": "The state of a localized field for a specific locale."
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
@@ -6,6 +6,8 @@ import * as LocalizationServiceDisableFailedEvent from './localization-service-d
6
6
  import * as LocalizationServiceDisableFinishedEvent from './localization-service-disable-finished-event.json';
7
7
  import * as LocalizationServiceEnableFailedEvent from './localization-service-enable-failed-event.json';
8
8
  import * as LocalizationServiceEnableFinishedEvent from './localization-service-enable-finished-event.json';
9
+ import * as LocalizeEntityFailedEvent from './localize-entity-failed-event.json';
10
+ import * as LocalizeEntityFinishedEvent from './localize-entity-finished-event.json';
9
11
 
10
12
  export const EntityDefinitionDeclareFailedEventSchema = EntityDefinitionDeclareFailedEvent;
11
13
  export const EntityDefinitionDeclareFinishedEventSchema = EntityDefinitionDeclareFinishedEvent;
@@ -14,4 +16,6 @@ export const EntityDefinitionDeleteFinishedEventSchema = EntityDefinitionDeleteF
14
16
  export const LocalizationServiceDisableFailedEventSchema = LocalizationServiceDisableFailedEvent;
15
17
  export const LocalizationServiceDisableFinishedEventSchema = LocalizationServiceDisableFinishedEvent;
16
18
  export const LocalizationServiceEnableFailedEventSchema = LocalizationServiceEnableFailedEvent;
17
- export const LocalizationServiceEnableFinishedEventSchema = LocalizationServiceEnableFinishedEvent;
19
+ export const LocalizationServiceEnableFinishedEventSchema = LocalizationServiceEnableFinishedEvent;
20
+ export const LocalizeEntityFailedEventSchema = LocalizeEntityFailedEvent;
21
+ export const LocalizeEntityFinishedEventSchema = LocalizeEntityFinishedEvent;
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "localize_entity_failed_event",
5
+ "description": "Localize entity failed event schema.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "service_id",
9
+ "entity_type",
10
+ "entity_id",
11
+ "message"
12
+ ],
13
+ "properties": {
14
+ "service_id": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "pattern": "^$|.*\\S.*",
18
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
19
+ },
20
+ "entity_type": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "pattern": "^$|.*\\S.*",
24
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
25
+ },
26
+ "entity_id": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "pattern": "^$|.*\\S.*",
30
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
31
+ },
32
+ "message": {
33
+ "type": "string",
34
+ "description": "Message that describes a reason for command processing failure."
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "localize_entity_finished_event",
5
+ "description": "Localize entity finished event schema.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "service_id",
9
+ "entity_type",
10
+ "entity_id",
11
+ "skipped_language_tags",
12
+ "processed_language_tags"
13
+ ],
14
+ "properties": {
15
+ "service_id": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "pattern": "^$|.*\\S.*",
19
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
20
+ },
21
+ "entity_type": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "pattern": "^$|.*\\S.*",
25
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
26
+ },
27
+ "entity_id": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "pattern": "^$|.*\\S.*",
31
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
32
+ },
33
+ "skipped_language_tags": {
34
+ "type": "array",
35
+ "description": "An array of language tags that were skipped. This might include tags for the default or not configured locales.",
36
+ "additionalItems": false,
37
+ "items": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "pattern": "^$|.*\\S.*",
41
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
42
+ }
43
+ },
44
+ "processed_language_tags": {
45
+ "type": "array",
46
+ "description": "An array of language tags that were used for localization.",
47
+ "additionalItems": false,
48
+ "items": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "pattern": "^$|.*\\S.*",
52
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
53
+ }
54
+ }
55
+ }
56
+ }
@@ -3,6 +3,7 @@ export * from './delete-entity-definition-command';
3
3
  export * from './delete-localization-source-entity-command';
4
4
  export * from './localization-service-disable-command';
5
5
  export * from './localization-service-enable-command';
6
+ export * from './localize-entity-command';
6
7
  export * from './upsert-localization-source-entity-command';
7
8
 
8
9
  export enum LocalizationCommandsSchemas {
@@ -11,6 +12,7 @@ export enum LocalizationCommandsSchemas {
11
12
  DeleteLocalizationSourceEntityCommand = 'payloads/localization/commands/delete-localization-source-entity-command.json',
12
13
  LocalizationServiceDisableCommand = 'payloads/localization/commands/localization-service-disable-command.json',
13
14
  LocalizationServiceEnableCommand = 'payloads/localization/commands/localization-service-enable-command.json',
15
+ LocalizeEntityCommand = 'payloads/localization/commands/localize-entity-command.json',
14
16
  UpsertLocalizationSourceEntityCommand = 'payloads/localization/commands/upsert-localization-source-entity-command.json'
15
17
  }
16
18
 
@@ -20,5 +22,6 @@ export enum LocalizationCommandsTypes {
20
22
  DeleteLocalizationSourceEntityCommand = 'DeleteLocalizationSourceEntityCommand',
21
23
  LocalizationServiceDisableCommand = 'LocalizationServiceDisableCommand',
22
24
  LocalizationServiceEnableCommand = 'LocalizationServiceEnableCommand',
25
+ LocalizeEntityCommand = 'LocalizeEntityCommand',
23
26
  UpsertLocalizationSourceEntityCommand = 'UpsertLocalizationSourceEntityCommand'
24
27
  }
@@ -0,0 +1,22 @@
1
+ import { EntityLocalization } from '../types/entity-localization';
2
+ /**
3
+ * Localize entity command schema.
4
+ */
5
+ export interface LocalizeEntityCommand {
6
+ /**
7
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
8
+ */
9
+ service_id: string;
10
+ /**
11
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
12
+ */
13
+ entity_type: string;
14
+ /**
15
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
16
+ */
17
+ entity_id: string;
18
+ /**
19
+ * An array of localizations for multiple locales.
20
+ */
21
+ localizations: EntityLocalization[];
22
+ }
@@ -6,6 +6,8 @@ export * from './localization-service-disable-failed-event';
6
6
  export * from './localization-service-disable-finished-event';
7
7
  export * from './localization-service-enable-failed-event';
8
8
  export * from './localization-service-enable-finished-event';
9
+ export * from './localize-entity-failed-event';
10
+ export * from './localize-entity-finished-event';
9
11
 
10
12
  export enum LocalizationEventsSchemas {
11
13
  EntityDefinitionDeclareFailedEvent = 'payloads/localization/events/entity-definition-declare-failed-event.json',
@@ -15,7 +17,9 @@ export enum LocalizationEventsSchemas {
15
17
  LocalizationServiceDisableFailedEvent = 'payloads/localization/events/localization-service-disable-failed-event.json',
16
18
  LocalizationServiceDisableFinishedEvent = 'payloads/localization/events/localization-service-disable-finished-event.json',
17
19
  LocalizationServiceEnableFailedEvent = 'payloads/localization/events/localization-service-enable-failed-event.json',
18
- LocalizationServiceEnableFinishedEvent = 'payloads/localization/events/localization-service-enable-finished-event.json'
20
+ LocalizationServiceEnableFinishedEvent = 'payloads/localization/events/localization-service-enable-finished-event.json',
21
+ LocalizeEntityFailedEvent = 'payloads/localization/events/localize-entity-failed-event.json',
22
+ LocalizeEntityFinishedEvent = 'payloads/localization/events/localize-entity-finished-event.json'
19
23
  }
20
24
 
21
25
  export enum LocalizationEventsTypes {
@@ -26,5 +30,7 @@ export enum LocalizationEventsTypes {
26
30
  LocalizationServiceDisableFailedEvent = 'LocalizationServiceDisableFailedEvent',
27
31
  LocalizationServiceDisableFinishedEvent = 'LocalizationServiceDisableFinishedEvent',
28
32
  LocalizationServiceEnableFailedEvent = 'LocalizationServiceEnableFailedEvent',
29
- LocalizationServiceEnableFinishedEvent = 'LocalizationServiceEnableFinishedEvent'
33
+ LocalizationServiceEnableFinishedEvent = 'LocalizationServiceEnableFinishedEvent',
34
+ LocalizeEntityFailedEvent = 'LocalizeEntityFailedEvent',
35
+ LocalizeEntityFinishedEvent = 'LocalizeEntityFinishedEvent'
30
36
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Localize entity failed event schema.
3
+ */
4
+ export interface LocalizeEntityFailedEvent {
5
+ /**
6
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
7
+ */
8
+ service_id: string;
9
+ /**
10
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
11
+ */
12
+ entity_type: string;
13
+ /**
14
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
15
+ */
16
+ entity_id: string;
17
+ /**
18
+ * Message that describes a reason for command processing failure.
19
+ */
20
+ message: string;
21
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Localize entity finished event schema.
3
+ */
4
+ export interface LocalizeEntityFinishedEvent {
5
+ /**
6
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
7
+ */
8
+ service_id: string;
9
+ /**
10
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
11
+ */
12
+ entity_type: string;
13
+ /**
14
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
15
+ */
16
+ entity_id: string;
17
+ /**
18
+ * An array of language tags that were skipped. This might include tags for the default or not configured locales.
19
+ */
20
+ skipped_language_tags: string[];
21
+ /**
22
+ * An array of language tags that were used for localization.
23
+ */
24
+ processed_language_tags: string[];
25
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The state of a localized field for a specific locale.
3
+ */
4
+ export type EntityLocalizationFieldState = "UNTRANSLATED" | "REVIEW_PENDING" | "APPROVED" | "REJECTED";