@localazy/strapi-plugin 1.0.10 → 1.0.11
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/_chunks/{FetchIdentity-W-xq7F8q.js → FetchIdentity-BB5V79aG.js} +9 -1
- package/dist/_chunks/{FetchIdentity-B9hYlR1E.mjs → FetchIdentity-CkL7UYRt.mjs} +9 -1
- package/dist/_chunks/{LanguagesSelector-zGN0icsS.mjs → LanguagesSelector-BUSLrXE9.mjs} +3 -3
- package/dist/_chunks/{LanguagesSelector-Cq9JuASq.js → LanguagesSelector-DDjJ90sz.js} +3 -3
- package/dist/_chunks/{LocalazyApp-CTMwUa44.js → LocalazyApp-BzcT9jmq.js} +93 -26
- package/dist/_chunks/{LocalazyApp-CxQTCwbi.mjs → LocalazyApp-H3kYTy7p.mjs} +93 -26
- package/dist/_chunks/{LocalazyContentTransferSetup-DOHIserI.mjs → LocalazyContentTransferSetup-BrLho135.mjs} +5 -5
- package/dist/_chunks/{LocalazyContentTransferSetup-DhSv2HJo.js → LocalazyContentTransferSetup-rrXuAqRA.js} +5 -5
- package/dist/_chunks/{LocalazyGlobalSettings-D7fyS9ih.js → LocalazyGlobalSettings-Dj93M25t.js} +22 -7
- package/dist/_chunks/{LocalazyGlobalSettings-DCFs8AA1.mjs → LocalazyGlobalSettings-NhjPAqfZ.mjs} +22 -7
- package/dist/_chunks/{LocalazyPanel-CDgAmxqx.js → LocalazyPanel-C1r8FU9w.js} +3 -3
- package/dist/_chunks/{LocalazyPanel-N7__R7p9.mjs → LocalazyPanel-DokDDR0T.mjs} +3 -3
- package/dist/_chunks/{LocalazyStatusColumn-CuGDwwZ8.mjs → LocalazyStatusColumn-CaAL-caH.mjs} +2 -2
- package/dist/_chunks/{LocalazyStatusColumn-CTjBaBqb.js → LocalazyStatusColumn-D50ZkXY-.js} +2 -2
- package/dist/_chunks/{RequireLocalazyAuth-BDtwyPLH.js → RequireLocalazyAuth-C9qzj01C.js} +12 -5
- package/dist/_chunks/{RequireLocalazyAuth-BmimcHYI.mjs → RequireLocalazyAuth-c-nP7C0A.mjs} +12 -5
- package/dist/_chunks/{entry-exclusion-service-BZkbrd3B.js → entry-exclusion-service-0Ul5AWi-.js} +1 -1
- package/dist/_chunks/{entry-exclusion-service-COp5ZXUY.mjs → entry-exclusion-service-Db6jzNVM.mjs} +1 -1
- package/dist/_chunks/{has-model-changed-BXqyvCRA.js → has-model-changed-CmZh9bwD.js} +2 -2
- package/dist/_chunks/{has-model-changed-K3Z8BNhV.mjs → has-model-changed-VkgGfN-6.mjs} +2 -2
- package/dist/_chunks/{i18n-RoETLXdU.mjs → i18n-Bga-GG_Z.mjs} +8 -1
- package/dist/_chunks/{i18n-0dV2P-Hm.js → i18n-DaBjUC3Y.js} +8 -1
- package/dist/_chunks/{index-CgI_aKe_.mjs → index-BIHAiJnE.mjs} +60 -8
- package/dist/_chunks/{index-CaY3BYnQ.js → index-BSNW1ypR.js} +59 -7
- package/dist/_chunks/{index-B_KJR1Xk.mjs → index-C_svJuLd.mjs} +8 -8
- package/dist/_chunks/{index-BtofOkFA.js → index-CaHacyle.js} +8 -8
- package/dist/_chunks/{strapi-api-base-BfIxEUh2.mjs → strapi-api-base-BTpukPev.mjs} +1 -1
- package/dist/_chunks/{strapi-api-base-S2_cFlNu.js → strapi-api-base-DJi1gdZT.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/modules/@common/components/TransferReport.d.ts +8 -1
- package/dist/admin/src/modules/localazy-download/locale/en.d.ts +5 -0
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/services/plugin-settings-service.d.ts +1 -0
- package/dist/server/index.js +4114 -3975
- package/dist/server/index.mjs +4113 -3974
- package/dist/server/src/controllers/index.d.ts +1 -0
- package/dist/server/src/controllers/plugin-settings-controller.d.ts +1 -0
- package/dist/server/src/core/index.d.ts +8 -5
- package/dist/server/src/db/model/sync-cursor.d.ts +9 -0
- package/dist/server/src/index.d.ts +9 -5
- package/dist/server/src/services/helpers/plugin-settings-service-helper.d.ts +1 -0
- package/dist/server/src/services/index.d.ts +8 -5
- package/dist/server/src/services/localazy-transfer-download-service.d.ts +2 -1
- package/dist/server/src/services/plugin-settings-service.d.ts +3 -0
- package/dist/server/src/services/strapi-i18n-service.d.ts +2 -2
- package/dist/server/src/services/strapi-localazy-i18n-service.d.ts +2 -2
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ declare const _default: {
|
|
|
32
32
|
updateContentTransferSetup(ctx: any): Promise<void>;
|
|
33
33
|
getPluginSettings(ctx: any): Promise<void>;
|
|
34
34
|
updatePluginSettings(ctx: any): Promise<void>;
|
|
35
|
+
getSyncCursor(ctx: any): Promise<void>;
|
|
35
36
|
};
|
|
36
37
|
LocalazyTransferController: ({ strapi }: {
|
|
37
38
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -6,5 +6,6 @@ declare const PluginSettingsController: ({ strapi }: {
|
|
|
6
6
|
updateContentTransferSetup(ctx: any): Promise<void>;
|
|
7
7
|
getPluginSettings(ctx: any): Promise<void>;
|
|
8
8
|
updatePluginSettings(ctx: any): Promise<void>;
|
|
9
|
+
getSyncCursor(ctx: any): Promise<void>;
|
|
9
10
|
};
|
|
10
11
|
export default PluginSettingsController;
|
|
@@ -16,8 +16,9 @@ export declare const getLocalazyTransferUploadService: () => {
|
|
|
16
16
|
}): Promise<void>;
|
|
17
17
|
};
|
|
18
18
|
export declare const getLocalazyTransferDownloadService: () => {
|
|
19
|
-
download({ notificationService }: {
|
|
19
|
+
download({ notificationService, fullSync, }: {
|
|
20
20
|
notificationService: import("../services/helpers/job-notification-service").default;
|
|
21
|
+
fullSync?: boolean;
|
|
21
22
|
}): Promise<void>;
|
|
22
23
|
};
|
|
23
24
|
export declare const getPluginSettingsService: () => {
|
|
@@ -28,6 +29,8 @@ export declare const getPluginSettingsService: () => {
|
|
|
28
29
|
}>;
|
|
29
30
|
getPluginSettings(): Promise<import("../db/model/plugin-settings").PluginSettings>;
|
|
30
31
|
updatePluginSettings(settings: any): Promise<any>;
|
|
32
|
+
getSyncCursor(): Promise<import("../db/model/sync-cursor").SyncCursor>;
|
|
33
|
+
updateSyncCursor(cursor: import("../db/model/sync-cursor").SyncCursor): Promise<import("../db/model/sync-cursor").SyncCursor>;
|
|
31
34
|
};
|
|
32
35
|
export declare const getStrapiService: () => {
|
|
33
36
|
getModels(): Promise<any[]>;
|
|
@@ -44,12 +47,12 @@ export declare const getStrapiI18nService: () => {
|
|
|
44
47
|
rest: string[];
|
|
45
48
|
};
|
|
46
49
|
getEntryInLocale(modelUid: import("@strapi/types/dist/uid").ContentType, documentId: string, isoStrapi: string): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
47
|
-
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<
|
|
48
|
-
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<
|
|
50
|
+
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
51
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
49
52
|
};
|
|
50
53
|
export declare const getStrapiLocalazyI18nService: () => {
|
|
51
|
-
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
52
|
-
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
54
|
+
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
55
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
53
56
|
};
|
|
54
57
|
export declare const getLocalazyUploadService: () => {
|
|
55
58
|
upload(file: any, config?: {}): Promise<{
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const KEY = "sync-cursor";
|
|
2
|
+
/**
|
|
3
|
+
* Per-language map of Localazy key ID to the last successfully processed event number.
|
|
4
|
+
* Structure: { [langCode]: { [keyId]: eventNumber } }
|
|
5
|
+
*/
|
|
6
|
+
export type SyncCursor = {
|
|
7
|
+
processedKeys: Record<string, Record<string, number>>;
|
|
8
|
+
};
|
|
9
|
+
export declare const emptySyncCursor: SyncCursor;
|
|
@@ -59,6 +59,7 @@ declare const _default: {
|
|
|
59
59
|
updateContentTransferSetup(ctx: any): Promise<void>;
|
|
60
60
|
getPluginSettings(ctx: any): Promise<void>;
|
|
61
61
|
updatePluginSettings(ctx: any): Promise<void>;
|
|
62
|
+
getSyncCursor(ctx: any): Promise<void>;
|
|
62
63
|
};
|
|
63
64
|
LocalazyTransferController: ({ strapi }: {
|
|
64
65
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -143,6 +144,8 @@ declare const _default: {
|
|
|
143
144
|
}>;
|
|
144
145
|
getPluginSettings(): Promise<import("./db/model/plugin-settings").PluginSettings>;
|
|
145
146
|
updatePluginSettings(settings: any): Promise<any>;
|
|
147
|
+
getSyncCursor(): Promise<import("./db/model/sync-cursor").SyncCursor>;
|
|
148
|
+
updateSyncCursor(cursor: import("./db/model/sync-cursor").SyncCursor): Promise<import("./db/model/sync-cursor").SyncCursor>;
|
|
146
149
|
};
|
|
147
150
|
LocalazyTransferUploadService: ({ strapi }: {
|
|
148
151
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -154,8 +157,9 @@ declare const _default: {
|
|
|
154
157
|
LocalazyTransferDownloadService: ({ strapi }: {
|
|
155
158
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
156
159
|
}) => {
|
|
157
|
-
download({ notificationService }: {
|
|
160
|
+
download({ notificationService, fullSync, }: {
|
|
158
161
|
notificationService: import("./services/helpers/job-notification-service").default;
|
|
162
|
+
fullSync?: boolean;
|
|
159
163
|
}): Promise<void>;
|
|
160
164
|
};
|
|
161
165
|
StrapiI18nService: ({ strapi }: {
|
|
@@ -170,8 +174,8 @@ declare const _default: {
|
|
|
170
174
|
rest: string[];
|
|
171
175
|
};
|
|
172
176
|
getEntryInLocale(modelUid: import("@strapi/types/dist/uid").ContentType, documentId: string, isoStrapi: string): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
173
|
-
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<
|
|
174
|
-
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<
|
|
177
|
+
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
178
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
175
179
|
};
|
|
176
180
|
LocalazyUploadService: ({ strapi }: {
|
|
177
181
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -196,8 +200,8 @@ declare const _default: {
|
|
|
196
200
|
StrapiLocalazyI18nService: ({ strapi }: {
|
|
197
201
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
198
202
|
}) => {
|
|
199
|
-
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
200
|
-
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
203
|
+
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
204
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
201
205
|
};
|
|
202
206
|
EntryExclusionService: ({ strapi }: {
|
|
203
207
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -32,6 +32,8 @@ declare const _default: {
|
|
|
32
32
|
}>;
|
|
33
33
|
getPluginSettings(): Promise<import("../db/model/plugin-settings").PluginSettings>;
|
|
34
34
|
updatePluginSettings(settings: any): Promise<any>;
|
|
35
|
+
getSyncCursor(): Promise<import("../db/model/sync-cursor").SyncCursor>;
|
|
36
|
+
updateSyncCursor(cursor: import("../db/model/sync-cursor").SyncCursor): Promise<import("../db/model/sync-cursor").SyncCursor>;
|
|
35
37
|
};
|
|
36
38
|
LocalazyTransferUploadService: ({ strapi }: {
|
|
37
39
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -43,8 +45,9 @@ declare const _default: {
|
|
|
43
45
|
LocalazyTransferDownloadService: ({ strapi }: {
|
|
44
46
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
45
47
|
}) => {
|
|
46
|
-
download({ notificationService }: {
|
|
48
|
+
download({ notificationService, fullSync, }: {
|
|
47
49
|
notificationService: import("./helpers/job-notification-service").default;
|
|
50
|
+
fullSync?: boolean;
|
|
48
51
|
}): Promise<void>;
|
|
49
52
|
};
|
|
50
53
|
StrapiI18nService: ({ strapi }: {
|
|
@@ -59,8 +62,8 @@ declare const _default: {
|
|
|
59
62
|
rest: string[];
|
|
60
63
|
};
|
|
61
64
|
getEntryInLocale(modelUid: import("@strapi/types/dist/uid").ContentType, documentId: string, isoStrapi: string): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
62
|
-
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<
|
|
63
|
-
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<
|
|
65
|
+
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
66
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
64
67
|
};
|
|
65
68
|
LocalazyUploadService: ({ strapi }: {
|
|
66
69
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -85,8 +88,8 @@ declare const _default: {
|
|
|
85
88
|
StrapiLocalazyI18nService: ({ strapi }: {
|
|
86
89
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
87
90
|
}) => {
|
|
88
|
-
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
89
|
-
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
91
|
+
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
92
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
90
93
|
};
|
|
91
94
|
EntryExclusionService: ({ strapi }: {
|
|
92
95
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -3,8 +3,9 @@ import { JobNotificationServiceType } from './helpers/job-notification-service';
|
|
|
3
3
|
declare const LocalazyTransferDownloadService: ({ strapi }: {
|
|
4
4
|
strapi: Core.Strapi;
|
|
5
5
|
}) => {
|
|
6
|
-
download({ notificationService }: {
|
|
6
|
+
download({ notificationService, fullSync, }: {
|
|
7
7
|
notificationService: JobNotificationServiceType;
|
|
8
|
+
fullSync?: boolean;
|
|
8
9
|
}): Promise<void>;
|
|
9
10
|
};
|
|
10
11
|
export type LocalazyTransferDownloadServiceReturnType = ReturnType<typeof LocalazyTransferDownloadService>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Core } from '@strapi/strapi';
|
|
2
2
|
import { PluginSettings } from '../db/model/plugin-settings';
|
|
3
|
+
import { SyncCursor } from '../db/model/sync-cursor';
|
|
3
4
|
import { ContentTransferSetup } from '../models/plugin/content-transfer-setup';
|
|
4
5
|
declare const PluginSettingsService: ({ strapi }: {
|
|
5
6
|
strapi: Core.Strapi;
|
|
@@ -11,6 +12,8 @@ declare const PluginSettingsService: ({ strapi }: {
|
|
|
11
12
|
}>;
|
|
12
13
|
getPluginSettings(): Promise<PluginSettings>;
|
|
13
14
|
updatePluginSettings(settings: any): Promise<any>;
|
|
15
|
+
getSyncCursor(): Promise<SyncCursor>;
|
|
16
|
+
updateSyncCursor(cursor: SyncCursor): Promise<SyncCursor>;
|
|
14
17
|
};
|
|
15
18
|
export type PluginSettingsServiceReturnType = ReturnType<typeof PluginSettingsService>;
|
|
16
19
|
export default PluginSettingsService;
|
|
@@ -12,8 +12,8 @@ declare const StrapiI18nService: ({ strapi }: {
|
|
|
12
12
|
rest: string[];
|
|
13
13
|
};
|
|
14
14
|
getEntryInLocale(modelUid: UID.ContentType, documentId: Modules.Documents.AnyDocument['documentId'], isoStrapi: string): Promise<Modules.Documents.AnyDocument | null>;
|
|
15
|
-
createLocalizationForAnExistingEntry(uid: UID.ContentType, baseEntry: any, newEntry: any): Promise<
|
|
16
|
-
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<
|
|
15
|
+
createLocalizationForAnExistingEntry(uid: UID.ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
16
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
17
17
|
};
|
|
18
18
|
export type StrapiI18nServiceReturnType = ReturnType<typeof StrapiI18nService>;
|
|
19
19
|
export default StrapiI18nService;
|
|
@@ -2,8 +2,8 @@ import { Core, UID } from '@strapi/strapi';
|
|
|
2
2
|
declare const StrapiLocalazyI18nService: ({ strapi }: {
|
|
3
3
|
strapi: Core.Strapi;
|
|
4
4
|
}) => {
|
|
5
|
-
createEntry(uid: UID.ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
6
|
-
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<
|
|
5
|
+
createEntry(uid: UID.ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
6
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
7
7
|
};
|
|
8
8
|
export type StrapiLocalazyI18nServiceReturnType = ReturnType<typeof StrapiLocalazyI18nService>;
|
|
9
9
|
export default StrapiLocalazyI18nService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@david-vaclavek/deep-keys": "^0.5.0",
|
|
82
|
-
"@localazy/api-client": "^2.1.
|
|
82
|
+
"@localazy/api-client": "^2.1.17",
|
|
83
83
|
"@localazy/conventional-changelog-preset": "^1.3.3",
|
|
84
84
|
"@localazy/generic-connector-client": "^0.3.0",
|
|
85
85
|
"@strapi/design-system": "^2.0.0-rc.14",
|