@localazy/strapi-plugin 1.0.10 → 1.1.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/_chunks/{FetchIdentity-W-xq7F8q.js → FetchIdentity-DfV1OWMB.js} +9 -1
- package/dist/_chunks/{FetchIdentity-B9hYlR1E.mjs → FetchIdentity-lkoWjYjn.mjs} +9 -1
- package/dist/_chunks/{LanguagesSelector-Cq9JuASq.js → LanguagesSelector-BmWfSZq6.js} +3 -3
- package/dist/_chunks/{LanguagesSelector-zGN0icsS.mjs → LanguagesSelector-vSZvVGUT.mjs} +3 -3
- package/dist/_chunks/{LocalazyApp-CTMwUa44.js → LocalazyApp-BUfYt7UL.js} +91 -27
- package/dist/_chunks/{LocalazyApp-CxQTCwbi.mjs → LocalazyApp-st8mwIbM.mjs} +91 -27
- package/dist/_chunks/{LocalazyContentTransferSetup-DhSv2HJo.js → LocalazyContentTransferSetup-BjLBgqFO.js} +5 -5
- package/dist/_chunks/{LocalazyContentTransferSetup-DOHIserI.mjs → LocalazyContentTransferSetup-D2YvBYs_.mjs} +5 -5
- package/dist/_chunks/{LocalazyGlobalSettings-DCFs8AA1.mjs → LocalazyGlobalSettings-DHCU2_RH.mjs} +22 -7
- package/dist/_chunks/{LocalazyGlobalSettings-D7fyS9ih.js → LocalazyGlobalSettings-Do5tOyhB.js} +22 -7
- package/dist/_chunks/{LocalazyPanel-CDgAmxqx.js → LocalazyPanel-BDxUI_RH.js} +3 -3
- package/dist/_chunks/{LocalazyPanel-N7__R7p9.mjs → LocalazyPanel-CulgT97p.mjs} +3 -3
- package/dist/_chunks/{LocalazyStatusColumn-CuGDwwZ8.mjs → LocalazyStatusColumn-DoTWD2eL.mjs} +2 -2
- package/dist/_chunks/{LocalazyStatusColumn-CTjBaBqb.js → LocalazyStatusColumn-Dpwoc5Ig.js} +2 -2
- package/dist/_chunks/{RequireLocalazyAuth-BDtwyPLH.js → RequireLocalazyAuth-BzM7C6Yw.js} +12 -5
- package/dist/_chunks/{RequireLocalazyAuth-BmimcHYI.mjs → RequireLocalazyAuth-CqHrZ1Ah.mjs} +12 -5
- package/dist/_chunks/{entry-exclusion-service-BZkbrd3B.js → entry-exclusion-service-Cvu8PQUI.js} +1 -1
- package/dist/_chunks/{entry-exclusion-service-COp5ZXUY.mjs → entry-exclusion-service-DWFMKgkA.mjs} +1 -1
- package/dist/_chunks/{has-model-changed-K3Z8BNhV.mjs → has-model-changed-CWdMNRB1.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-BXqyvCRA.js → has-model-changed-D1f6is8z.js} +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-BtofOkFA.js → index-BgPI2yQD.js} +8 -8
- package/dist/_chunks/{index-B_KJR1Xk.mjs → index-CtvR-R3c.mjs} +8 -8
- package/dist/_chunks/{strapi-api-base-S2_cFlNu.js → strapi-api-base-CN6q5tPh.js} +1 -1
- package/dist/_chunks/{strapi-api-base-BfIxEUh2.mjs → strapi-api-base-CturxOqD.mjs} +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/@common/services/product-analytics-service.d.ts +1 -0
- 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 +4643 -4394
- package/dist/server/index.mjs +4642 -4393
- package/dist/server/src/controllers/index.d.ts +5 -4
- package/dist/server/src/controllers/localazy-auth-controller.d.ts +1 -1
- package/dist/server/src/controllers/localazy-project-controller.d.ts +1 -1
- package/dist/server/src/controllers/localazy-user-controller.d.ts +1 -1
- package/dist/server/src/controllers/plugin-settings-controller.d.ts +2 -1
- package/dist/server/src/core/index.d.ts +9 -5
- package/dist/server/src/db/model/sync-cursor.d.ts +9 -0
- package/dist/server/src/destroy.d.ts +1 -1
- package/dist/server/src/index.d.ts +15 -10
- package/dist/server/src/services/helpers/plugin-settings-service-helper.d.ts +1 -0
- package/dist/server/src/services/index.d.ts +9 -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/dist/server/src/services/strapi-service.d.ts +1 -0
- package/dist/server/src/utils/get-character-limits-metadata.d.ts +13 -0
- package/dist/server/src/utils/get-picked-flatten-keys-for-hook-entry.d.ts +3 -1
- package/package.json +6 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
LocalazyUserController: ({ strapi }: {
|
|
2
|
+
LocalazyUserController: ({ strapi: _strapi }: {
|
|
3
3
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
4
|
}) => {
|
|
5
5
|
getUser(ctx: any): Promise<void>;
|
|
6
6
|
updateUser(ctx: any): Promise<void>;
|
|
7
7
|
deleteUser(ctx: any): Promise<void>;
|
|
8
8
|
};
|
|
9
|
-
LocalazyAuthController: ({ strapi }: {
|
|
9
|
+
LocalazyAuthController: ({ strapi: _strapi }: {
|
|
10
10
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
11
11
|
}) => {
|
|
12
12
|
generateKeys(ctx: any): Promise<void>;
|
|
@@ -20,18 +20,19 @@ declare const _default: {
|
|
|
20
20
|
postLifecycleLocalazyWebhooks(): Promise<void>;
|
|
21
21
|
getPluginVersion(ctx: any): Promise<void>;
|
|
22
22
|
};
|
|
23
|
-
LocalazyProjectController: ({ strapi }: {
|
|
23
|
+
LocalazyProjectController: ({ strapi: _strapi }: {
|
|
24
24
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
25
25
|
}) => {
|
|
26
26
|
getConnectedProject(ctx: any): Promise<void>;
|
|
27
27
|
};
|
|
28
|
-
PluginSettingsController: ({ strapi }: {
|
|
28
|
+
PluginSettingsController: ({ strapi: _strapi }: {
|
|
29
29
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
30
30
|
}) => {
|
|
31
31
|
getContentTransferSetup(ctx: any): Promise<void>;
|
|
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;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Core } from '@strapi/strapi';
|
|
2
|
-
declare const PluginSettingsController: ({ strapi }: {
|
|
2
|
+
declare const PluginSettingsController: ({ strapi: _strapi }: {
|
|
3
3
|
strapi: Core.Strapi;
|
|
4
4
|
}) => {
|
|
5
5
|
getContentTransferSetup(ctx: any): Promise<void>;
|
|
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,11 +29,14 @@ 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[]>;
|
|
34
37
|
getLocalizableModels(): Promise<any[]>;
|
|
35
38
|
getPluginVersion(): Promise<string>;
|
|
39
|
+
getStrapiVersion(): string;
|
|
36
40
|
};
|
|
37
41
|
export declare const getStrapiI18nService: () => {
|
|
38
42
|
getLocales(): Promise<import("../models/strapi/locale").Locale[]>;
|
|
@@ -44,12 +48,12 @@ export declare const getStrapiI18nService: () => {
|
|
|
44
48
|
rest: string[];
|
|
45
49
|
};
|
|
46
50
|
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<
|
|
51
|
+
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
52
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
49
53
|
};
|
|
50
54
|
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<
|
|
55
|
+
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
56
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
53
57
|
};
|
|
54
58
|
export declare const getLocalazyUploadService: () => {
|
|
55
59
|
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;
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
bootstrap: ({ strapi }: {
|
|
6
6
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
7
7
|
}) => void;
|
|
8
|
-
destroy: ({ strapi }: {
|
|
8
|
+
destroy: ({ strapi: _strapi }: {
|
|
9
9
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
10
10
|
}) => void;
|
|
11
11
|
config: {
|
|
@@ -26,14 +26,14 @@ declare const _default: {
|
|
|
26
26
|
validator(): void;
|
|
27
27
|
};
|
|
28
28
|
controllers: {
|
|
29
|
-
LocalazyUserController: ({ strapi }: {
|
|
29
|
+
LocalazyUserController: ({ strapi: _strapi }: {
|
|
30
30
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
31
31
|
}) => {
|
|
32
32
|
getUser(ctx: any): Promise<void>;
|
|
33
33
|
updateUser(ctx: any): Promise<void>;
|
|
34
34
|
deleteUser(ctx: any): Promise<void>;
|
|
35
35
|
};
|
|
36
|
-
LocalazyAuthController: ({ strapi }: {
|
|
36
|
+
LocalazyAuthController: ({ strapi: _strapi }: {
|
|
37
37
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
38
38
|
}) => {
|
|
39
39
|
generateKeys(ctx: any): Promise<void>;
|
|
@@ -47,18 +47,19 @@ declare const _default: {
|
|
|
47
47
|
postLifecycleLocalazyWebhooks(): Promise<void>;
|
|
48
48
|
getPluginVersion(ctx: any): Promise<void>;
|
|
49
49
|
};
|
|
50
|
-
LocalazyProjectController: ({ strapi }: {
|
|
50
|
+
LocalazyProjectController: ({ strapi: _strapi }: {
|
|
51
51
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
52
52
|
}) => {
|
|
53
53
|
getConnectedProject(ctx: any): Promise<void>;
|
|
54
54
|
};
|
|
55
|
-
PluginSettingsController: ({ strapi }: {
|
|
55
|
+
PluginSettingsController: ({ strapi: _strapi }: {
|
|
56
56
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
57
57
|
}) => {
|
|
58
58
|
getContentTransferSetup(ctx: any): Promise<void>;
|
|
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;
|
|
@@ -123,6 +124,7 @@ declare const _default: {
|
|
|
123
124
|
getModels(): Promise<any[]>;
|
|
124
125
|
getLocalizableModels(): Promise<any[]>;
|
|
125
126
|
getPluginVersion(): Promise<string>;
|
|
127
|
+
getStrapiVersion(): string;
|
|
126
128
|
};
|
|
127
129
|
LocalazyPubAPIService: ({ strapi }: {
|
|
128
130
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -143,6 +145,8 @@ declare const _default: {
|
|
|
143
145
|
}>;
|
|
144
146
|
getPluginSettings(): Promise<import("./db/model/plugin-settings").PluginSettings>;
|
|
145
147
|
updatePluginSettings(settings: any): Promise<any>;
|
|
148
|
+
getSyncCursor(): Promise<import("./db/model/sync-cursor").SyncCursor>;
|
|
149
|
+
updateSyncCursor(cursor: import("./db/model/sync-cursor").SyncCursor): Promise<import("./db/model/sync-cursor").SyncCursor>;
|
|
146
150
|
};
|
|
147
151
|
LocalazyTransferUploadService: ({ strapi }: {
|
|
148
152
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -154,8 +158,9 @@ declare const _default: {
|
|
|
154
158
|
LocalazyTransferDownloadService: ({ strapi }: {
|
|
155
159
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
156
160
|
}) => {
|
|
157
|
-
download({ notificationService }: {
|
|
161
|
+
download({ notificationService, fullSync, }: {
|
|
158
162
|
notificationService: import("./services/helpers/job-notification-service").default;
|
|
163
|
+
fullSync?: boolean;
|
|
159
164
|
}): Promise<void>;
|
|
160
165
|
};
|
|
161
166
|
StrapiI18nService: ({ strapi }: {
|
|
@@ -170,8 +175,8 @@ declare const _default: {
|
|
|
170
175
|
rest: string[];
|
|
171
176
|
};
|
|
172
177
|
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<
|
|
178
|
+
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
179
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
175
180
|
};
|
|
176
181
|
LocalazyUploadService: ({ strapi }: {
|
|
177
182
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -196,8 +201,8 @@ declare const _default: {
|
|
|
196
201
|
StrapiLocalazyI18nService: ({ strapi }: {
|
|
197
202
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
198
203
|
}) => {
|
|
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<
|
|
204
|
+
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
205
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
201
206
|
};
|
|
202
207
|
EntryExclusionService: ({ strapi }: {
|
|
203
208
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -12,6 +12,7 @@ declare const _default: {
|
|
|
12
12
|
getModels(): Promise<any[]>;
|
|
13
13
|
getLocalizableModels(): Promise<any[]>;
|
|
14
14
|
getPluginVersion(): Promise<string>;
|
|
15
|
+
getStrapiVersion(): string;
|
|
15
16
|
};
|
|
16
17
|
LocalazyPubAPIService: ({ strapi }: {
|
|
17
18
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -32,6 +33,8 @@ declare const _default: {
|
|
|
32
33
|
}>;
|
|
33
34
|
getPluginSettings(): Promise<import("../db/model/plugin-settings").PluginSettings>;
|
|
34
35
|
updatePluginSettings(settings: any): Promise<any>;
|
|
36
|
+
getSyncCursor(): Promise<import("../db/model/sync-cursor").SyncCursor>;
|
|
37
|
+
updateSyncCursor(cursor: import("../db/model/sync-cursor").SyncCursor): Promise<import("../db/model/sync-cursor").SyncCursor>;
|
|
35
38
|
};
|
|
36
39
|
LocalazyTransferUploadService: ({ strapi }: {
|
|
37
40
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -43,8 +46,9 @@ declare const _default: {
|
|
|
43
46
|
LocalazyTransferDownloadService: ({ strapi }: {
|
|
44
47
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
45
48
|
}) => {
|
|
46
|
-
download({ notificationService }: {
|
|
49
|
+
download({ notificationService, fullSync, }: {
|
|
47
50
|
notificationService: import("./helpers/job-notification-service").default;
|
|
51
|
+
fullSync?: boolean;
|
|
48
52
|
}): Promise<void>;
|
|
49
53
|
};
|
|
50
54
|
StrapiI18nService: ({ strapi }: {
|
|
@@ -59,8 +63,8 @@ declare const _default: {
|
|
|
59
63
|
rest: string[];
|
|
60
64
|
};
|
|
61
65
|
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<
|
|
66
|
+
createLocalizationForAnExistingEntry(uid: import("@strapi/types/dist/uid").ContentType, baseEntry: any, newEntry: any): Promise<any>;
|
|
67
|
+
updateLocalizationForAnExistingEntry(uid: any, localizedDocumentId: any, data: any, locale: string): Promise<any>;
|
|
64
68
|
};
|
|
65
69
|
LocalazyUploadService: ({ strapi }: {
|
|
66
70
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
@@ -85,8 +89,8 @@ declare const _default: {
|
|
|
85
89
|
StrapiLocalazyI18nService: ({ strapi }: {
|
|
86
90
|
strapi: import("@strapi/types/dist/core").Strapi;
|
|
87
91
|
}) => {
|
|
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<
|
|
92
|
+
createEntry(uid: import("@strapi/types/dist/uid").ContentType, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
93
|
+
updateEntry(uid: any, localizedDocumentId: string, strapiContentTypesModels: any, translatedModel: any, baseEntry: any, isoStrapi: any): Promise<any>;
|
|
90
94
|
};
|
|
91
95
|
EntryExclusionService: ({ strapi }: {
|
|
92
96
|
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;
|
|
@@ -5,6 +5,7 @@ declare const StrapiService: ({ strapi }: {
|
|
|
5
5
|
getModels(): Promise<any[]>;
|
|
6
6
|
getLocalizableModels(): Promise<any[]>;
|
|
7
7
|
getPluginVersion(): Promise<string>;
|
|
8
|
+
getStrapiVersion(): string;
|
|
8
9
|
};
|
|
9
10
|
export type StrapiServiceReturnType = ReturnType<typeof StrapiService>;
|
|
10
11
|
export default StrapiService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts character limit metadata from Strapi content type schemas
|
|
3
|
+
* and returns @meta: entries for keys that have maxLength defined.
|
|
4
|
+
*
|
|
5
|
+
* The @meta: prefix is used by the Localazy API to associate metadata
|
|
6
|
+
* (such as character limits) with specific keys during import.
|
|
7
|
+
*
|
|
8
|
+
* @see https://localazy.com/docs/api/import
|
|
9
|
+
*/
|
|
10
|
+
declare const getCharacterLimitsMetadata: (flattenedContent: Record<string, any>, modelUid: string) => Record<string, {
|
|
11
|
+
limit: number;
|
|
12
|
+
}>;
|
|
13
|
+
export { getCharacterLimitsMetadata };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { HookParams } from '../models/plugin/hook-params';
|
|
2
2
|
declare const _default: (params: HookParams) => Promise<{
|
|
3
|
-
pickedFlatten:
|
|
3
|
+
pickedFlatten: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
};
|
|
4
6
|
eventEntryLocale: string;
|
|
5
7
|
projectSourceLanguageCode: string;
|
|
6
8
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -61,11 +61,12 @@
|
|
|
61
61
|
"test:server": "jest --config server/jest.config.ts",
|
|
62
62
|
"test:server:coverage": "jest --config server/jest.config.ts --coverage",
|
|
63
63
|
"test:server:watch": "jest --config server/jest.config.ts --watch",
|
|
64
|
-
"test:ts:back": "
|
|
65
|
-
"test:ts:front": "
|
|
64
|
+
"test:ts:back": "tsc -p server/tsconfig.json --noEmit",
|
|
65
|
+
"test:ts:front": "tsc -p admin/tsconfig.json --noEmit",
|
|
66
66
|
"verify": "strapi-plugin verify",
|
|
67
67
|
"watch": "strapi-plugin watch",
|
|
68
|
-
"watch:link": "strapi-plugin watch:link"
|
|
68
|
+
"watch:link": "strapi-plugin watch:link",
|
|
69
|
+
"prepare": "husky"
|
|
69
70
|
},
|
|
70
71
|
"lint-staged": {
|
|
71
72
|
"*.{ts,tsx}": [
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
},
|
|
80
81
|
"devDependencies": {
|
|
81
82
|
"@david-vaclavek/deep-keys": "^0.5.0",
|
|
82
|
-
"@localazy/api-client": "^2.1.
|
|
83
|
+
"@localazy/api-client": "^2.1.17",
|
|
83
84
|
"@localazy/conventional-changelog-preset": "^1.3.3",
|
|
84
85
|
"@localazy/generic-connector-client": "^0.3.0",
|
|
85
86
|
"@strapi/design-system": "^2.0.0-rc.14",
|