@axinom/mosaic-messages 0.27.1-rc.9 → 0.28.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.
- package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.d.ts +2 -0
- package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.d.ts.map +1 -1
- package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.js +2 -0
- package/dist/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.js.map +1 -1
- package/dist/generated/schemas/payloads/localization/commands/delete-localization-source-entity-command.json +32 -0
- package/dist/generated/schemas/payloads/localization/commands/index.d.ts +69 -0
- package/dist/generated/schemas/payloads/localization/commands/index.d.ts.map +1 -1
- package/dist/generated/schemas/payloads/localization/commands/index.js +5 -1
- package/dist/generated/schemas/payloads/localization/commands/index.js.map +1 -1
- package/dist/generated/schemas/payloads/localization/commands/upsert-localization-source-entity-command.json +49 -0
- package/dist/generated/types/payloads/localization/commands/delete-localization-source-entity-command.d.ts +18 -0
- package/dist/generated/types/payloads/localization/commands/delete-localization-source-entity-command.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/commands/delete-localization-source-entity-command.js +3 -0
- package/dist/generated/types/payloads/localization/commands/delete-localization-source-entity-command.js.map +1 -0
- package/dist/generated/types/payloads/localization/commands/index.d.ts +8 -2
- package/dist/generated/types/payloads/localization/commands/index.d.ts.map +1 -1
- package/dist/generated/types/payloads/localization/commands/index.js +6 -0
- package/dist/generated/types/payloads/localization/commands/index.js.map +1 -1
- package/dist/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.d.ts +31 -0
- package/dist/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.js +3 -0
- package/dist/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/index.d.ts +1 -0
- package/dist/generated/types/payloads/localization/types/index.d.ts.map +1 -1
- package/dist/generated/types/payloads/localization/types/index.js +1 -0
- package/dist/generated/types/payloads/localization/types/index.js.map +1 -1
- package/dist/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.d.ts +7 -0
- package/dist/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.js +3 -0
- package/dist/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.js.map +1 -0
- package/package.json +4 -4
- package/src/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.ts +10 -0
- package/src/generated/schemas/payloads/localization/commands/delete-localization-source-entity-command.json +32 -0
- package/src/generated/schemas/payloads/localization/commands/index.ts +5 -1
- package/src/generated/schemas/payloads/localization/commands/upsert-localization-source-entity-command.json +49 -0
- package/src/generated/types/payloads/localization/commands/delete-localization-source-entity-command.ts +17 -0
- package/src/generated/types/payloads/localization/commands/index.ts +8 -2
- package/src/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.ts +30 -0
- package/src/generated/types/payloads/localization/types/index.ts +2 -1
- package/src/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.ts +6 -0
|
@@ -5,6 +5,8 @@ export declare class LocalizationServiceMultiTenantMessagingSettings extends Mul
|
|
|
5
5
|
readonly routingKey: string;
|
|
6
6
|
static DeclareEntityDefinition: LocalizationServiceMultiTenantMessagingSettings;
|
|
7
7
|
static DeleteEntityDefinition: LocalizationServiceMultiTenantMessagingSettings;
|
|
8
|
+
static UpsertLocalizationSourceEntity: LocalizationServiceMultiTenantMessagingSettings;
|
|
9
|
+
static DeleteLocalizationSourceEntity: LocalizationServiceMultiTenantMessagingSettings;
|
|
8
10
|
static EntityDefinitionDeclareFinished: LocalizationServiceMultiTenantMessagingSettings;
|
|
9
11
|
static EntityDefinitionDeclareFailed: LocalizationServiceMultiTenantMessagingSettings;
|
|
10
12
|
static EntityDefinitionDeleteFinished: LocalizationServiceMultiTenantMessagingSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization-service-multi-tenant-messaging-settings.d.ts","sourceRoot":"","sources":["../../../../../src/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAEvF,qBAAa,+CAAgD,SAAQ,4BAA4B;
|
|
1
|
+
{"version":3,"file":"localization-service-multi-tenant-messaging-settings.d.ts","sourceRoot":"","sources":["../../../../../src/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAEvF,qBAAa,+CAAgD,SAAQ,4BAA4B;aA2C7E,WAAW,EAAE,MAAM;aACnB,KAAK,EAAE,MAAM;aACb,UAAU,EAAE,MAAM;IA5CpC,OAAc,uBAAuB,kDAIjC;IACJ,OAAc,sBAAsB,kDAIhC;IACJ,OAAc,8BAA8B,kDAIxC;IACJ,OAAc,8BAA8B,kDAIxC;IACJ,OAAc,+BAA+B,kDAIzC;IACJ,OAAc,6BAA6B,kDAIvC;IACJ,OAAc,8BAA8B,kDAIxC;IACJ,OAAc,4BAA4B,kDAItC;IAEJ,OAAO;IAQA,QAAQ,QAAO,MAAM,CAE1B;CACH"}
|
|
@@ -15,6 +15,8 @@ class LocalizationServiceMultiTenantMessagingSettings extends mosaic_message_bus
|
|
|
15
15
|
}
|
|
16
16
|
LocalizationServiceMultiTenantMessagingSettings.DeclareEntityDefinition = new LocalizationServiceMultiTenantMessagingSettings('DeclareEntityDefinition', 'entity_definition:declare', '*.*.entity_definition.declare');
|
|
17
17
|
LocalizationServiceMultiTenantMessagingSettings.DeleteEntityDefinition = new LocalizationServiceMultiTenantMessagingSettings('DeleteEntityDefinition', 'entity_definition:delete', '*.*.entity_definition.delete');
|
|
18
|
+
LocalizationServiceMultiTenantMessagingSettings.UpsertLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings('UpsertLocalizationSourceEntity', 'localization_source_entity:upsert', '*.*.localization_source_entity.upsert');
|
|
19
|
+
LocalizationServiceMultiTenantMessagingSettings.DeleteLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings('DeleteLocalizationSourceEntity', 'localization_source_entity:delete', '*.*.localization_source_entity.delete');
|
|
18
20
|
LocalizationServiceMultiTenantMessagingSettings.EntityDefinitionDeclareFinished = new LocalizationServiceMultiTenantMessagingSettings('EntityDefinitionDeclareFinished', 'entity_definition:declare_finished', '*.*.entity_definition.declare_finished');
|
|
19
21
|
LocalizationServiceMultiTenantMessagingSettings.EntityDefinitionDeclareFailed = new LocalizationServiceMultiTenantMessagingSettings('EntityDefinitionDeclareFailed', 'entity_definition:declare_failed', '*.*.entity_definition.declare_failed');
|
|
20
22
|
LocalizationServiceMultiTenantMessagingSettings.EntityDefinitionDeleteFinished = new LocalizationServiceMultiTenantMessagingSettings('EntityDefinitionDeleteFinished', 'entity_definition:delete_finished', '*.*.entity_definition.delete_finished');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization-service-multi-tenant-messaging-settings.js","sourceRoot":"","sources":["../../../../../src/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.ts"],"names":[],"mappings":";;;AAAA,6FAAuF;AAEvF,MAAa,+CAAgD,SAAQ,8DAA4B;
|
|
1
|
+
{"version":3,"file":"localization-service-multi-tenant-messaging-settings.js","sourceRoot":"","sources":["../../../../../src/generated/config/payloads/localization/localization-service-multi-tenant-messaging-settings.ts"],"names":[],"mappings":";;;AAAA,6FAAuF;AAEvF,MAAa,+CAAgD,SAAQ,8DAA4B;IA0C/F,YACkB,WAAmB,EACnB,KAAa,EACb,UAAkB;QAElC,KAAK,CAAC,yBAAyB,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;QAJjD,gBAAW,GAAX,WAAW,CAAQ;QACnB,UAAK,GAAL,KAAK,CAAQ;QACb,eAAU,GAAV,UAAU,CAAQ;QAK7B,aAAQ,GAAG,GAAW,EAAE;YAC7B,OAAO,IAAI,CAAC,WAAW,CAAC;QAC1B,CAAC,CAAC;IAJF,CAAC;;AA/Ca,uEAAuB,GAAG,IAAI,+CAA+C,CACzF,yBAAyB,EACzB,2BAA2B,EAC3B,+BAA+B,CAC9B,AAJkC,CAIjC;AACU,sEAAsB,GAAG,IAAI,+CAA+C,CACxF,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,CAC7B,AAJiC,CAIhC;AACU,8EAA8B,GAAG,IAAI,+CAA+C,CAChG,gCAAgC,EAChC,mCAAmC,EACnC,uCAAuC,CACtC,AAJyC,CAIxC;AACU,8EAA8B,GAAG,IAAI,+CAA+C,CAChG,gCAAgC,EAChC,mCAAmC,EACnC,uCAAuC,CACtC,AAJyC,CAIxC;AACU,+EAA+B,GAAG,IAAI,+CAA+C,CACjG,iCAAiC,EACjC,oCAAoC,EACpC,wCAAwC,CACvC,AAJ0C,CAIzC;AACU,6EAA6B,GAAG,IAAI,+CAA+C,CAC/F,+BAA+B,EAC/B,kCAAkC,EAClC,sCAAsC,CACrC,AAJwC,CAIvC;AACU,8EAA8B,GAAG,IAAI,+CAA+C,CAChG,gCAAgC,EAChC,mCAAmC,EACnC,uCAAuC,CACtC,AAJyC,CAIxC;AACU,4EAA4B,GAAG,IAAI,+CAA+C,CAC9F,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,CACpC,AAJuC,CAItC;AAxCO,0GAA+C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "delete_localization_source_entity_command",
|
|
5
|
+
"description": "Delete localization source entity command schema.",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"service_id",
|
|
9
|
+
"entity_type",
|
|
10
|
+
"entity_id"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"service_id": {
|
|
14
|
+
"description": "Id of service for which the localization source entity will be deleted (e.g. 'media-service').",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"pattern": "^$|.*\\S.*"
|
|
18
|
+
},
|
|
19
|
+
"entity_type": {
|
|
20
|
+
"description": "The type of entity for which the localization source entity will be deleted (e.g. 'movie').",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": "^$|.*\\S.*"
|
|
24
|
+
},
|
|
25
|
+
"entity_id": {
|
|
26
|
+
"description": "Id of the entity for which the localization source entity will be deleted.",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"pattern": "^$|.*\\S.*"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -138,6 +138,34 @@ export declare const DeleteEntityDefinitionCommandSchema: {
|
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
|
+
export declare const DeleteLocalizationSourceEntityCommandSchema: {
|
|
142
|
+
$schema: string;
|
|
143
|
+
type: string;
|
|
144
|
+
title: string;
|
|
145
|
+
description: string;
|
|
146
|
+
additionalProperties: boolean;
|
|
147
|
+
required: string[];
|
|
148
|
+
properties: {
|
|
149
|
+
service_id: {
|
|
150
|
+
description: string;
|
|
151
|
+
type: string;
|
|
152
|
+
minLength: number;
|
|
153
|
+
pattern: string;
|
|
154
|
+
};
|
|
155
|
+
entity_type: {
|
|
156
|
+
description: string;
|
|
157
|
+
type: string;
|
|
158
|
+
minLength: number;
|
|
159
|
+
pattern: string;
|
|
160
|
+
};
|
|
161
|
+
entity_id: {
|
|
162
|
+
description: string;
|
|
163
|
+
type: string;
|
|
164
|
+
minLength: number;
|
|
165
|
+
pattern: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
141
169
|
export declare const LocalizationServiceDisableCommandSchema: {
|
|
142
170
|
$schema: string;
|
|
143
171
|
type: string;
|
|
@@ -186,4 +214,45 @@ export declare const LocalizationServiceEnableCommandSchema: {
|
|
|
186
214
|
};
|
|
187
215
|
};
|
|
188
216
|
};
|
|
217
|
+
export declare const UpsertLocalizationSourceEntityCommandSchema: {
|
|
218
|
+
$schema: string;
|
|
219
|
+
type: string;
|
|
220
|
+
title: string;
|
|
221
|
+
description: string;
|
|
222
|
+
additionalProperties: boolean;
|
|
223
|
+
required: string[];
|
|
224
|
+
properties: {
|
|
225
|
+
service_id: {
|
|
226
|
+
description: string;
|
|
227
|
+
type: string;
|
|
228
|
+
minLength: number;
|
|
229
|
+
pattern: string;
|
|
230
|
+
};
|
|
231
|
+
entity_type: {
|
|
232
|
+
description: string;
|
|
233
|
+
type: string;
|
|
234
|
+
minLength: number;
|
|
235
|
+
pattern: string;
|
|
236
|
+
};
|
|
237
|
+
entity_id: {
|
|
238
|
+
description: string;
|
|
239
|
+
type: string;
|
|
240
|
+
minLength: number;
|
|
241
|
+
pattern: string;
|
|
242
|
+
};
|
|
243
|
+
entity_title: {
|
|
244
|
+
type: string;
|
|
245
|
+
description: string;
|
|
246
|
+
};
|
|
247
|
+
image_id: {
|
|
248
|
+
type: string[];
|
|
249
|
+
description: string;
|
|
250
|
+
};
|
|
251
|
+
fields: {
|
|
252
|
+
type: string;
|
|
253
|
+
title: string;
|
|
254
|
+
description: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
189
258
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/commands/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/commands/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAC;AACnF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;CAAgC,CAAC;AACjF,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACjG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC;AACzF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AACvF,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocalizationServiceEnableCommandSchema = exports.LocalizationServiceDisableCommandSchema = exports.DeleteEntityDefinitionCommandSchema = exports.DeclareEntityDefinitionCommandSchema = void 0;
|
|
3
|
+
exports.UpsertLocalizationSourceEntityCommandSchema = exports.LocalizationServiceEnableCommandSchema = exports.LocalizationServiceDisableCommandSchema = exports.DeleteLocalizationSourceEntityCommandSchema = exports.DeleteEntityDefinitionCommandSchema = exports.DeclareEntityDefinitionCommandSchema = void 0;
|
|
4
4
|
const DeclareEntityDefinitionCommand = require("./declare-entity-definition-command.json");
|
|
5
5
|
const DeleteEntityDefinitionCommand = require("./delete-entity-definition-command.json");
|
|
6
|
+
const DeleteLocalizationSourceEntityCommand = require("./delete-localization-source-entity-command.json");
|
|
6
7
|
const LocalizationServiceDisableCommand = require("./localization-service-disable-command.json");
|
|
7
8
|
const LocalizationServiceEnableCommand = require("./localization-service-enable-command.json");
|
|
9
|
+
const UpsertLocalizationSourceEntityCommand = require("./upsert-localization-source-entity-command.json");
|
|
8
10
|
exports.DeclareEntityDefinitionCommandSchema = DeclareEntityDefinitionCommand;
|
|
9
11
|
exports.DeleteEntityDefinitionCommandSchema = DeleteEntityDefinitionCommand;
|
|
12
|
+
exports.DeleteLocalizationSourceEntityCommandSchema = DeleteLocalizationSourceEntityCommand;
|
|
10
13
|
exports.LocalizationServiceDisableCommandSchema = LocalizationServiceDisableCommand;
|
|
11
14
|
exports.LocalizationServiceEnableCommandSchema = LocalizationServiceEnableCommand;
|
|
15
|
+
exports.UpsertLocalizationSourceEntityCommandSchema = UpsertLocalizationSourceEntityCommand;
|
|
12
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/commands/index.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC3F,yFAAyF;AACzF,iGAAiG;AACjG,+FAA+F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/commands/index.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC3F,yFAAyF;AACzF,0GAA0G;AAC1G,iGAAiG;AACjG,+FAA+F;AAC/F,0GAA0G;AAE7F,QAAA,oCAAoC,GAAG,8BAA8B,CAAC;AACtE,QAAA,mCAAmC,GAAG,6BAA6B,CAAC;AACpE,QAAA,2CAA2C,GAAG,qCAAqC,CAAC;AACpF,QAAA,uCAAuC,GAAG,iCAAiC,CAAC;AAC5E,QAAA,sCAAsC,GAAG,gCAAgC,CAAC;AAC1E,QAAA,2CAA2C,GAAG,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "upsert_localization_source_entity_command",
|
|
5
|
+
"description": "Upsert localization source entity command schema.",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"service_id",
|
|
9
|
+
"entity_type",
|
|
10
|
+
"entity_id",
|
|
11
|
+
"fields"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"service_id": {
|
|
15
|
+
"description": "Id of service for which the localization source entity will be added or updated (e.g. 'media-service').",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"pattern": "^$|.*\\S.*"
|
|
19
|
+
},
|
|
20
|
+
"entity_type": {
|
|
21
|
+
"description": "The type of entity for which the localization source entity will be added or updated (e.g. 'movie').",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"pattern": "^$|.*\\S.*"
|
|
25
|
+
},
|
|
26
|
+
"entity_id": {
|
|
27
|
+
"description": "Id of the entity for which the localization source entity will be added or updated.",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"pattern": "^$|.*\\S.*"
|
|
31
|
+
},
|
|
32
|
+
"entity_title": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "An optional title of the localization source entity."
|
|
35
|
+
},
|
|
36
|
+
"image_id": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null"
|
|
40
|
+
],
|
|
41
|
+
"description": "An optional Id of the related image. If null is passed - image will be unassigned. If undefined is passed - image will not be updated."
|
|
42
|
+
},
|
|
43
|
+
"fields": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"title": "upsert_localization_source_entity_fields",
|
|
46
|
+
"description": "Fields that would be added or updated for the localization source entity."
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delete localization source entity command schema.
|
|
3
|
+
*/
|
|
4
|
+
export interface DeleteLocalizationSourceEntityCommand {
|
|
5
|
+
/**
|
|
6
|
+
* Id of service for which the localization source entity will be deleted (e.g. 'media-service').
|
|
7
|
+
*/
|
|
8
|
+
service_id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The type of entity for which the localization source entity will be deleted (e.g. 'movie').
|
|
11
|
+
*/
|
|
12
|
+
entity_type: string;
|
|
13
|
+
/**
|
|
14
|
+
* Id of the entity for which the localization source entity will be deleted.
|
|
15
|
+
*/
|
|
16
|
+
entity_id: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=delete-localization-source-entity-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-localization-source-entity-command.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/delete-localization-source-entity-command.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-localization-source-entity-command.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/delete-localization-source-entity-command.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
export * from './declare-entity-definition-command';
|
|
2
2
|
export * from './delete-entity-definition-command';
|
|
3
|
+
export * from './delete-localization-source-entity-command';
|
|
3
4
|
export * from './localization-service-disable-command';
|
|
4
5
|
export * from './localization-service-enable-command';
|
|
6
|
+
export * from './upsert-localization-source-entity-command';
|
|
5
7
|
export declare enum LocalizationCommandsSchemas {
|
|
6
8
|
DeclareEntityDefinitionCommand = "payloads/localization/commands/declare-entity-definition-command.json",
|
|
7
9
|
DeleteEntityDefinitionCommand = "payloads/localization/commands/delete-entity-definition-command.json",
|
|
10
|
+
DeleteLocalizationSourceEntityCommand = "payloads/localization/commands/delete-localization-source-entity-command.json",
|
|
8
11
|
LocalizationServiceDisableCommand = "payloads/localization/commands/localization-service-disable-command.json",
|
|
9
|
-
LocalizationServiceEnableCommand = "payloads/localization/commands/localization-service-enable-command.json"
|
|
12
|
+
LocalizationServiceEnableCommand = "payloads/localization/commands/localization-service-enable-command.json",
|
|
13
|
+
UpsertLocalizationSourceEntityCommand = "payloads/localization/commands/upsert-localization-source-entity-command.json"
|
|
10
14
|
}
|
|
11
15
|
export declare enum LocalizationCommandsTypes {
|
|
12
16
|
DeclareEntityDefinitionCommand = "DeclareEntityDefinitionCommand",
|
|
13
17
|
DeleteEntityDefinitionCommand = "DeleteEntityDefinitionCommand",
|
|
18
|
+
DeleteLocalizationSourceEntityCommand = "DeleteLocalizationSourceEntityCommand",
|
|
14
19
|
LocalizationServiceDisableCommand = "LocalizationServiceDisableCommand",
|
|
15
|
-
LocalizationServiceEnableCommand = "LocalizationServiceEnableCommand"
|
|
20
|
+
LocalizationServiceEnableCommand = "LocalizationServiceEnableCommand",
|
|
21
|
+
UpsertLocalizationSourceEntityCommand = "UpsertLocalizationSourceEntityCommand"
|
|
16
22
|
}
|
|
17
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAE5D,oBAAY,2BAA2B;IACrC,8BAA8B,0EAA0E;IACxG,6BAA6B,yEAAyE;IACtG,qCAAqC,kFAAkF;IACvH,iCAAiC,6EAA6E;IAC9G,gCAAgC,4EAA4E;IAC5G,qCAAqC,kFAAkF;CACxH;AAED,oBAAY,yBAAyB;IACnC,8BAA8B,mCAAmC;IACjE,6BAA6B,kCAAkC;IAC/D,qCAAqC,0CAA0C;IAC/E,iCAAiC,sCAAsC;IACvE,gCAAgC,qCAAqC;IACrE,qCAAqC,0CAA0C;CAChF"}
|
|
@@ -17,20 +17,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.LocalizationCommandsTypes = exports.LocalizationCommandsSchemas = void 0;
|
|
18
18
|
__exportStar(require("./declare-entity-definition-command"), exports);
|
|
19
19
|
__exportStar(require("./delete-entity-definition-command"), exports);
|
|
20
|
+
__exportStar(require("./delete-localization-source-entity-command"), exports);
|
|
20
21
|
__exportStar(require("./localization-service-disable-command"), exports);
|
|
21
22
|
__exportStar(require("./localization-service-enable-command"), exports);
|
|
23
|
+
__exportStar(require("./upsert-localization-source-entity-command"), exports);
|
|
22
24
|
var LocalizationCommandsSchemas;
|
|
23
25
|
(function (LocalizationCommandsSchemas) {
|
|
24
26
|
LocalizationCommandsSchemas["DeclareEntityDefinitionCommand"] = "payloads/localization/commands/declare-entity-definition-command.json";
|
|
25
27
|
LocalizationCommandsSchemas["DeleteEntityDefinitionCommand"] = "payloads/localization/commands/delete-entity-definition-command.json";
|
|
28
|
+
LocalizationCommandsSchemas["DeleteLocalizationSourceEntityCommand"] = "payloads/localization/commands/delete-localization-source-entity-command.json";
|
|
26
29
|
LocalizationCommandsSchemas["LocalizationServiceDisableCommand"] = "payloads/localization/commands/localization-service-disable-command.json";
|
|
27
30
|
LocalizationCommandsSchemas["LocalizationServiceEnableCommand"] = "payloads/localization/commands/localization-service-enable-command.json";
|
|
31
|
+
LocalizationCommandsSchemas["UpsertLocalizationSourceEntityCommand"] = "payloads/localization/commands/upsert-localization-source-entity-command.json";
|
|
28
32
|
})(LocalizationCommandsSchemas = exports.LocalizationCommandsSchemas || (exports.LocalizationCommandsSchemas = {}));
|
|
29
33
|
var LocalizationCommandsTypes;
|
|
30
34
|
(function (LocalizationCommandsTypes) {
|
|
31
35
|
LocalizationCommandsTypes["DeclareEntityDefinitionCommand"] = "DeclareEntityDefinitionCommand";
|
|
32
36
|
LocalizationCommandsTypes["DeleteEntityDefinitionCommand"] = "DeleteEntityDefinitionCommand";
|
|
37
|
+
LocalizationCommandsTypes["DeleteLocalizationSourceEntityCommand"] = "DeleteLocalizationSourceEntityCommand";
|
|
33
38
|
LocalizationCommandsTypes["LocalizationServiceDisableCommand"] = "LocalizationServiceDisableCommand";
|
|
34
39
|
LocalizationCommandsTypes["LocalizationServiceEnableCommand"] = "LocalizationServiceEnableCommand";
|
|
40
|
+
LocalizationCommandsTypes["UpsertLocalizationSourceEntityCommand"] = "UpsertLocalizationSourceEntityCommand";
|
|
35
41
|
})(LocalizationCommandsTypes = exports.LocalizationCommandsTypes || (exports.LocalizationCommandsTypes = {}));
|
|
36
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,qEAAmD;AACnD,yEAAuD;AACvD,wEAAsD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,qEAAmD;AACnD,8EAA4D;AAC5D,yEAAuD;AACvD,wEAAsD;AACtD,8EAA4D;AAE5D,IAAY,2BAOX;AAPD,WAAY,2BAA2B;IACrC,uIAAwG,CAAA;IACxG,qIAAsG,CAAA;IACtG,sJAAuH,CAAA;IACvH,6IAA8G,CAAA;IAC9G,2IAA4G,CAAA;IAC5G,sJAAuH,CAAA;AACzH,CAAC,EAPW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAOtC;AAED,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,8FAAiE,CAAA;IACjE,4FAA+D,CAAA;IAC/D,4GAA+E,CAAA;IAC/E,oGAAuE,CAAA;IACvE,kGAAqE,CAAA;IACrE,4GAA+E,CAAA;AACjF,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UpsertLocalizationSourceEntityFields } from '../types/upsert-localization-source-entity-fields';
|
|
2
|
+
/**
|
|
3
|
+
* Upsert localization source entity command schema.
|
|
4
|
+
*/
|
|
5
|
+
export interface UpsertLocalizationSourceEntityCommand {
|
|
6
|
+
/**
|
|
7
|
+
* Id of service for which the localization source entity will be added or updated (e.g. 'media-service').
|
|
8
|
+
*/
|
|
9
|
+
service_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The type of entity for which the localization source entity will be added or updated (e.g. 'movie').
|
|
12
|
+
*/
|
|
13
|
+
entity_type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Id of the entity for which the localization source entity will be added or updated.
|
|
16
|
+
*/
|
|
17
|
+
entity_id: string;
|
|
18
|
+
/**
|
|
19
|
+
* An optional title of the localization source entity.
|
|
20
|
+
*/
|
|
21
|
+
entity_title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* An optional Id of the related image. If null is passed - image will be unassigned. If undefined is passed - image will not be updated.
|
|
24
|
+
*/
|
|
25
|
+
image_id?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Fields that would be added or updated for the localization source entity.
|
|
28
|
+
*/
|
|
29
|
+
fields: UpsertLocalizationSourceEntityFields;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=upsert-localization-source-entity-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert-localization-source-entity-command.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,oCAAoC,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert-localization-source-entity-command.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/commands/upsert-localization-source-entity-command.ts"],"names":[],"mappings":""}
|
|
@@ -6,4 +6,5 @@ export * from './field-definition-validation-rule';
|
|
|
6
6
|
export * from './field-definition-validation-rule-settings';
|
|
7
7
|
export * from './field-definition-validation-severity';
|
|
8
8
|
export * from './localization-error-details';
|
|
9
|
+
export * from './upsert-localization-source-entity-fields';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8BAA8B,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,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC"}
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./field-definition-validation-rule"), exports);
|
|
|
22
22
|
__exportStar(require("./field-definition-validation-rule-settings"), exports);
|
|
23
23
|
__exportStar(require("./field-definition-validation-severity"), exports);
|
|
24
24
|
__exportStar(require("./localization-error-details"), exports);
|
|
25
|
+
__exportStar(require("./upsert-localization-source-entity-fields"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,8EAA4D;AAC5D,yEAAuD;AACvD,+DAA6C"}
|
|
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,8EAA4D;AAC5D,yEAAuD;AACvD,+DAA6C;AAC7C,6EAA2D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert-localization-source-entity-fields.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert-localization-source-entity-fields.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/upsert-localization-source-entity-fields.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-messages",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.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.18.
|
|
33
|
-
"@axinom/mosaic-message-bus-abstractions": "^0.5.
|
|
32
|
+
"@axinom/mosaic-cli": "^0.18.4-rc.0",
|
|
33
|
+
"@axinom/mosaic-message-bus-abstractions": "^0.5.5-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": "
|
|
45
|
+
"gitHead": "d99f62328986c3250b0491a0b8b5f55d89b66840"
|
|
46
46
|
}
|
|
@@ -11,6 +11,16 @@ export class LocalizationServiceMultiTenantMessagingSettings extends MultiTenant
|
|
|
11
11
|
'entity_definition:delete',
|
|
12
12
|
'*.*.entity_definition.delete'
|
|
13
13
|
);
|
|
14
|
+
public static UpsertLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings(
|
|
15
|
+
'UpsertLocalizationSourceEntity',
|
|
16
|
+
'localization_source_entity:upsert',
|
|
17
|
+
'*.*.localization_source_entity.upsert'
|
|
18
|
+
);
|
|
19
|
+
public static DeleteLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings(
|
|
20
|
+
'DeleteLocalizationSourceEntity',
|
|
21
|
+
'localization_source_entity:delete',
|
|
22
|
+
'*.*.localization_source_entity.delete'
|
|
23
|
+
);
|
|
14
24
|
public static EntityDefinitionDeclareFinished = new LocalizationServiceMultiTenantMessagingSettings(
|
|
15
25
|
'EntityDefinitionDeclareFinished',
|
|
16
26
|
'entity_definition:declare_finished',
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "delete_localization_source_entity_command",
|
|
5
|
+
"description": "Delete localization source entity command schema.",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"service_id",
|
|
9
|
+
"entity_type",
|
|
10
|
+
"entity_id"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"service_id": {
|
|
14
|
+
"description": "Id of service for which the localization source entity will be deleted (e.g. 'media-service').",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"pattern": "^$|.*\\S.*"
|
|
18
|
+
},
|
|
19
|
+
"entity_type": {
|
|
20
|
+
"description": "The type of entity for which the localization source entity will be deleted (e.g. 'movie').",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": "^$|.*\\S.*"
|
|
24
|
+
},
|
|
25
|
+
"entity_id": {
|
|
26
|
+
"description": "Id of the entity for which the localization source entity will be deleted.",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"pattern": "^$|.*\\S.*"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as DeclareEntityDefinitionCommand from './declare-entity-definition-command.json';
|
|
2
2
|
import * as DeleteEntityDefinitionCommand from './delete-entity-definition-command.json';
|
|
3
|
+
import * as DeleteLocalizationSourceEntityCommand from './delete-localization-source-entity-command.json';
|
|
3
4
|
import * as LocalizationServiceDisableCommand from './localization-service-disable-command.json';
|
|
4
5
|
import * as LocalizationServiceEnableCommand from './localization-service-enable-command.json';
|
|
6
|
+
import * as UpsertLocalizationSourceEntityCommand from './upsert-localization-source-entity-command.json';
|
|
5
7
|
|
|
6
8
|
export const DeclareEntityDefinitionCommandSchema = DeclareEntityDefinitionCommand;
|
|
7
9
|
export const DeleteEntityDefinitionCommandSchema = DeleteEntityDefinitionCommand;
|
|
10
|
+
export const DeleteLocalizationSourceEntityCommandSchema = DeleteLocalizationSourceEntityCommand;
|
|
8
11
|
export const LocalizationServiceDisableCommandSchema = LocalizationServiceDisableCommand;
|
|
9
|
-
export const LocalizationServiceEnableCommandSchema = LocalizationServiceEnableCommand;
|
|
12
|
+
export const LocalizationServiceEnableCommandSchema = LocalizationServiceEnableCommand;
|
|
13
|
+
export const UpsertLocalizationSourceEntityCommandSchema = UpsertLocalizationSourceEntityCommand;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "upsert_localization_source_entity_command",
|
|
5
|
+
"description": "Upsert localization source entity command schema.",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"service_id",
|
|
9
|
+
"entity_type",
|
|
10
|
+
"entity_id",
|
|
11
|
+
"fields"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"service_id": {
|
|
15
|
+
"description": "Id of service for which the localization source entity will be added or updated (e.g. 'media-service').",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"pattern": "^$|.*\\S.*"
|
|
19
|
+
},
|
|
20
|
+
"entity_type": {
|
|
21
|
+
"description": "The type of entity for which the localization source entity will be added or updated (e.g. 'movie').",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"pattern": "^$|.*\\S.*"
|
|
25
|
+
},
|
|
26
|
+
"entity_id": {
|
|
27
|
+
"description": "Id of the entity for which the localization source entity will be added or updated.",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"pattern": "^$|.*\\S.*"
|
|
31
|
+
},
|
|
32
|
+
"entity_title": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "An optional title of the localization source entity."
|
|
35
|
+
},
|
|
36
|
+
"image_id": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null"
|
|
40
|
+
],
|
|
41
|
+
"description": "An optional Id of the related image. If null is passed - image will be unassigned. If undefined is passed - image will not be updated."
|
|
42
|
+
},
|
|
43
|
+
"fields": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"title": "upsert_localization_source_entity_fields",
|
|
46
|
+
"description": "Fields that would be added or updated for the localization source entity."
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delete localization source entity command schema.
|
|
3
|
+
*/
|
|
4
|
+
export interface DeleteLocalizationSourceEntityCommand {
|
|
5
|
+
/**
|
|
6
|
+
* Id of service for which the localization source entity will be deleted (e.g. 'media-service').
|
|
7
|
+
*/
|
|
8
|
+
service_id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The type of entity for which the localization source entity will be deleted (e.g. 'movie').
|
|
11
|
+
*/
|
|
12
|
+
entity_type: string;
|
|
13
|
+
/**
|
|
14
|
+
* Id of the entity for which the localization source entity will be deleted.
|
|
15
|
+
*/
|
|
16
|
+
entity_id: string;
|
|
17
|
+
}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
export * from './declare-entity-definition-command';
|
|
2
2
|
export * from './delete-entity-definition-command';
|
|
3
|
+
export * from './delete-localization-source-entity-command';
|
|
3
4
|
export * from './localization-service-disable-command';
|
|
4
5
|
export * from './localization-service-enable-command';
|
|
6
|
+
export * from './upsert-localization-source-entity-command';
|
|
5
7
|
|
|
6
8
|
export enum LocalizationCommandsSchemas {
|
|
7
9
|
DeclareEntityDefinitionCommand = 'payloads/localization/commands/declare-entity-definition-command.json',
|
|
8
10
|
DeleteEntityDefinitionCommand = 'payloads/localization/commands/delete-entity-definition-command.json',
|
|
11
|
+
DeleteLocalizationSourceEntityCommand = 'payloads/localization/commands/delete-localization-source-entity-command.json',
|
|
9
12
|
LocalizationServiceDisableCommand = 'payloads/localization/commands/localization-service-disable-command.json',
|
|
10
|
-
LocalizationServiceEnableCommand = 'payloads/localization/commands/localization-service-enable-command.json'
|
|
13
|
+
LocalizationServiceEnableCommand = 'payloads/localization/commands/localization-service-enable-command.json',
|
|
14
|
+
UpsertLocalizationSourceEntityCommand = 'payloads/localization/commands/upsert-localization-source-entity-command.json'
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
export enum LocalizationCommandsTypes {
|
|
14
18
|
DeclareEntityDefinitionCommand = 'DeclareEntityDefinitionCommand',
|
|
15
19
|
DeleteEntityDefinitionCommand = 'DeleteEntityDefinitionCommand',
|
|
20
|
+
DeleteLocalizationSourceEntityCommand = 'DeleteLocalizationSourceEntityCommand',
|
|
16
21
|
LocalizationServiceDisableCommand = 'LocalizationServiceDisableCommand',
|
|
17
|
-
LocalizationServiceEnableCommand = 'LocalizationServiceEnableCommand'
|
|
22
|
+
LocalizationServiceEnableCommand = 'LocalizationServiceEnableCommand',
|
|
23
|
+
UpsertLocalizationSourceEntityCommand = 'UpsertLocalizationSourceEntityCommand'
|
|
18
24
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UpsertLocalizationSourceEntityFields } from '../types/upsert-localization-source-entity-fields';
|
|
2
|
+
/**
|
|
3
|
+
* Upsert localization source entity command schema.
|
|
4
|
+
*/
|
|
5
|
+
export interface UpsertLocalizationSourceEntityCommand {
|
|
6
|
+
/**
|
|
7
|
+
* Id of service for which the localization source entity will be added or updated (e.g. 'media-service').
|
|
8
|
+
*/
|
|
9
|
+
service_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The type of entity for which the localization source entity will be added or updated (e.g. 'movie').
|
|
12
|
+
*/
|
|
13
|
+
entity_type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Id of the entity for which the localization source entity will be added or updated.
|
|
16
|
+
*/
|
|
17
|
+
entity_id: string;
|
|
18
|
+
/**
|
|
19
|
+
* An optional title of the localization source entity.
|
|
20
|
+
*/
|
|
21
|
+
entity_title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* An optional Id of the related image. If null is passed - image will be unassigned. If undefined is passed - image will not be updated.
|
|
24
|
+
*/
|
|
25
|
+
image_id?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Fields that would be added or updated for the localization source entity.
|
|
28
|
+
*/
|
|
29
|
+
fields: UpsertLocalizationSourceEntityFields;
|
|
30
|
+
}
|
|
@@ -5,4 +5,5 @@ export * from './field-definition-ui-field-type';
|
|
|
5
5
|
export * from './field-definition-validation-rule';
|
|
6
6
|
export * from './field-definition-validation-rule-settings';
|
|
7
7
|
export * from './field-definition-validation-severity';
|
|
8
|
-
export * from './localization-error-details';
|
|
8
|
+
export * from './localization-error-details';
|
|
9
|
+
export * from './upsert-localization-source-entity-fields';
|