@crowdin/app-project-module 0.43.1 → 0.45.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/out/index.d.ts +3 -3
- package/out/index.js +103 -219
- package/out/middlewares/crowdin-client.d.ts +1 -1
- package/out/middlewares/crowdin-client.js +3 -2
- package/out/middlewares/integration-credentials.d.ts +3 -2
- package/out/middlewares/render-ui-module.d.ts +2 -2
- package/out/middlewares/ui-module.d.ts +2 -2
- package/out/middlewares/ui-module.js +5 -1
- package/out/{util → modules}/api/api.d.ts +3 -2
- package/out/{util → modules}/api/api.js +22 -22
- package/out/modules/api/index.d.ts +6 -0
- package/out/modules/api/index.js +14 -0
- package/out/modules/api/types.d.ts +20 -0
- package/out/modules/api/types.js +11 -0
- package/out/modules/context-menu/index.d.ts +6 -0
- package/out/modules/context-menu/index.js +17 -0
- package/out/modules/context-menu/types.d.ts +27 -0
- package/out/modules/context-menu/types.js +18 -0
- package/out/{handlers/custom-mt → modules/custom-mt/handlers}/translate.d.ts +2 -1
- package/out/{handlers/custom-mt → modules/custom-mt/handlers}/translate.js +2 -2
- package/out/modules/custom-mt/index.d.ts +6 -0
- package/out/modules/custom-mt/index.js +17 -0
- package/out/modules/custom-mt/types.d.ts +22 -0
- package/out/modules/custom-mt/types.js +2 -0
- package/out/{handlers/custom-spell-check → modules/custom-spell-check/handlers}/get-languages-list.d.ts +2 -1
- package/out/{handlers/custom-spell-check → modules/custom-spell-check/handlers}/get-languages-list.js +2 -2
- package/out/{handlers/custom-spell-check → modules/custom-spell-check/handlers}/spell-check.d.ts +2 -1
- package/out/{handlers/custom-spell-check → modules/custom-spell-check/handlers}/spell-check.js +5 -3
- package/out/modules/custom-spell-check/index.d.ts +6 -0
- package/out/modules/custom-spell-check/index.js +32 -0
- package/out/modules/custom-spell-check/types.d.ts +56 -0
- package/out/modules/custom-spell-check/types.js +2 -0
- package/out/modules/editor-right-panel/index.d.ts +6 -0
- package/out/modules/editor-right-panel/index.js +17 -0
- package/out/modules/editor-right-panel/types.d.ts +7 -0
- package/out/modules/editor-right-panel/types.js +2 -0
- package/out/modules/editor-themes/index.d.ts +6 -0
- package/out/modules/editor-themes/index.js +11 -0
- package/out/modules/editor-themes/types.d.ts +17 -0
- package/out/modules/editor-themes/types.js +2 -0
- package/out/{handlers/file-processing → modules/file-processing/handlers}/custom-file-format.d.ts +2 -1
- package/out/{handlers/file-processing → modules/file-processing/handlers}/custom-file-format.js +5 -5
- package/out/modules/file-processing/handlers/file-download.d.ts +5 -0
- package/out/{handlers/file-processing → modules/file-processing/handlers}/file-download.js +2 -2
- package/out/{handlers/file-processing → modules/file-processing/handlers}/pre-post-process.d.ts +2 -1
- package/out/{handlers/file-processing → modules/file-processing/handlers}/pre-post-process.js +8 -8
- package/out/modules/file-processing/index.d.ts +22 -0
- package/out/modules/file-processing/index.js +57 -0
- package/out/modules/file-processing/types.d.ts +133 -0
- package/out/modules/file-processing/types.js +12 -0
- package/out/modules/file-processing/util/defaults.d.ts +3 -0
- package/out/modules/file-processing/util/defaults.js +30 -0
- package/out/modules/file-processing/util/files.d.ts +6 -0
- package/out/modules/file-processing/util/files.js +47 -0
- package/out/{handlers/integration/crowdin-project.d.ts → modules/form-data-display.d.ts} +1 -1
- package/out/modules/form-data-save.d.ts +4 -0
- package/out/modules/install.d.ts +4 -0
- package/out/{handlers → modules}/install.js +3 -3
- package/out/{handlers/integration → modules/integration/handlers}/crowdin-file-progress.d.ts +2 -1
- package/out/{handlers/integration → modules/integration/handlers}/crowdin-file-progress.js +2 -2
- package/out/modules/integration/handlers/crowdin-files.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/crowdin-files.js +3 -3
- package/out/modules/integration/handlers/crowdin-project.d.ts +4 -0
- package/out/{handlers/integration → modules/integration/handlers}/crowdin-project.js +1 -1
- package/out/modules/integration/handlers/crowdin-update.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/crowdin-update.js +9 -9
- package/out/modules/integration/handlers/crowdin-webhook.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/crowdin-webhook.js +19 -8
- package/out/modules/integration/handlers/integration-data.d.ts +4 -0
- package/out/{handlers/integration → modules/integration/handlers}/integration-data.js +5 -5
- package/out/{handlers/integration → modules/integration/handlers}/integration-login.d.ts +2 -1
- package/out/{handlers/integration → modules/integration/handlers}/integration-login.js +3 -3
- package/out/modules/integration/handlers/integration-logout.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/integration-logout.js +14 -7
- package/out/modules/integration/handlers/integration-update.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/integration-update.js +9 -8
- package/out/modules/integration/handlers/integration-webhook.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/integration-webhook.js +9 -4
- package/out/modules/integration/handlers/job-cancel.d.ts +3 -0
- package/out/{handlers/integration → modules/integration/handlers}/job-cancel.js +4 -4
- package/out/modules/integration/handlers/job-info.d.ts +3 -0
- package/out/{handlers/integration → modules/integration/handlers}/job-info.js +4 -4
- package/out/modules/integration/handlers/main.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/main.js +5 -5
- package/out/modules/integration/handlers/oauth-login.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/oauth-login.js +3 -3
- package/out/{handlers/integration → modules/integration/handlers}/oauth-url.d.ts +2 -1
- package/out/{handlers/integration → modules/integration/handlers}/oauth-url.js +2 -2
- package/out/modules/integration/handlers/settings-save.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/settings-save.js +28 -11
- package/out/modules/integration/handlers/settings.d.ts +3 -0
- package/out/{handlers/integration → modules/integration/handlers}/settings.js +1 -1
- package/out/{handlers/integration → modules/integration/handlers}/subscription-info.d.ts +1 -1
- package/out/{handlers/integration → modules/integration/handlers}/subscription-info.js +2 -2
- package/out/modules/integration/handlers/sync-settings-save.d.ts +5 -0
- package/out/{handlers/integration → modules/integration/handlers}/sync-settings-save.js +16 -8
- package/out/modules/integration/handlers/sync-settings.d.ts +3 -0
- package/out/{handlers/integration → modules/integration/handlers}/sync-settings.js +2 -2
- package/out/modules/integration/handlers/user-errors.d.ts +3 -0
- package/out/{handlers/integration → modules/integration/handlers}/user-errors.js +2 -2
- package/out/modules/integration/index.d.ts +6 -0
- package/out/modules/integration/index.js +118 -0
- package/out/modules/integration/types.d.ts +435 -0
- package/out/modules/integration/types.js +19 -0
- package/out/modules/integration/util/cron.d.ts +27 -0
- package/out/{util → modules/integration/util}/cron.js +97 -28
- package/out/{util → modules/integration/util}/defaults.d.ts +2 -3
- package/out/{util → modules/integration/util}/defaults.js +1 -36
- package/out/modules/integration/util/files.d.ts +5 -0
- package/out/{util → modules/integration/util}/files.js +9 -40
- package/out/{util → modules/integration/util}/job.d.ts +1 -1
- package/out/{util → modules/integration/util}/job.js +11 -11
- package/out/{util/file-snapshot.d.ts → modules/integration/util/snapshot.d.ts} +2 -3
- package/out/{util/file-snapshot.js → modules/integration/util/snapshot.js} +6 -65
- package/out/{models/job.d.ts → modules/integration/util/types.d.ts} +14 -0
- package/out/modules/integration/util/webhooks.d.ts +48 -0
- package/out/{util → modules/integration/util}/webhooks.js +95 -49
- package/out/modules/manifest.d.ts +3 -0
- package/out/{handlers → modules}/manifest.js +22 -16
- package/out/modules/modal/index.d.ts +6 -0
- package/out/modules/modal/index.js +17 -0
- package/out/modules/organization-menu/index.d.ts +6 -0
- package/out/modules/organization-menu/index.js +18 -0
- package/out/modules/profile-resources-menu/index.d.ts +6 -0
- package/out/modules/profile-resources-menu/index.js +18 -0
- package/out/modules/project-menu/index.d.ts +6 -0
- package/out/modules/project-menu/index.js +17 -0
- package/out/modules/project-menu-crowdsource/index.d.ts +6 -0
- package/out/modules/project-menu-crowdsource/index.js +17 -0
- package/out/modules/project-reports/index.d.ts +6 -0
- package/out/modules/project-reports/index.js +18 -0
- package/out/modules/project-tools/index.d.ts +6 -0
- package/out/modules/project-tools/index.js +18 -0
- package/out/modules/subscription-paid.d.ts +3 -0
- package/out/{handlers → modules}/subscription-paid.js +2 -2
- package/out/modules/uninstall.d.ts +4 -0
- package/out/{handlers → modules}/uninstall.js +6 -2
- package/out/storage/index.d.ts +5 -3
- package/out/storage/mysql.d.ts +4 -2
- package/out/storage/mysql.js +3 -3
- package/out/storage/postgre.d.ts +4 -2
- package/out/storage/postgre.js +3 -3
- package/out/storage/sqlite.d.ts +4 -2
- package/out/storage/sqlite.js +3 -3
- package/out/storage/types.d.ts +9 -0
- package/out/storage/types.js +2 -0
- package/out/types.d.ts +374 -0
- package/out/types.js +59 -0
- package/out/util/connection.d.ts +2 -9
- package/out/util/connection.js +54 -150
- package/out/util/handlebars.d.ts +1 -0
- package/out/util/handlebars.js +34 -0
- package/out/util/index.d.ts +2 -2
- package/out/util/index.js +6 -6
- package/out/util/logger.d.ts +2 -2
- package/out/util/subscription.d.ts +9 -0
- package/out/util/subscription.js +111 -0
- package/package.json +1 -1
- package/out/handlers/file-processing/file-download.d.ts +0 -4
- package/out/handlers/form-data-display.d.ts +0 -3
- package/out/handlers/form-data-save.d.ts +0 -3
- package/out/handlers/install.d.ts +0 -4
- package/out/handlers/integration/crowdin-files.d.ts +0 -4
- package/out/handlers/integration/crowdin-update.d.ts +0 -4
- package/out/handlers/integration/crowdin-webhook.d.ts +0 -4
- package/out/handlers/integration/integration-data.d.ts +0 -4
- package/out/handlers/integration/integration-logout.d.ts +0 -4
- package/out/handlers/integration/integration-update.d.ts +0 -4
- package/out/handlers/integration/integration-webhook.d.ts +0 -4
- package/out/handlers/integration/job-cancel.d.ts +0 -3
- package/out/handlers/integration/job-info.d.ts +0 -3
- package/out/handlers/integration/main.d.ts +0 -4
- package/out/handlers/integration/oauth-login.d.ts +0 -4
- package/out/handlers/integration/settings-save.d.ts +0 -4
- package/out/handlers/integration/settings.d.ts +0 -3
- package/out/handlers/integration/sync-settings-save.d.ts +0 -4
- package/out/handlers/integration/sync-settings.d.ts +0 -3
- package/out/handlers/integration/user-errors.d.ts +0 -3
- package/out/handlers/manifest.d.ts +0 -3
- package/out/handlers/subscription-paid.d.ts +0 -3
- package/out/handlers/uninstall.d.ts +0 -4
- package/out/models/index.d.ts +0 -1088
- package/out/models/index.js +0 -106
- package/out/util/cron.d.ts +0 -7
- package/out/util/files.d.ts +0 -9
- package/out/util/webhooks.d.ts +0 -28
- /package/out/{util → modules}/api/base.d.ts +0 -0
- /package/out/{util → modules}/api/base.js +0 -0
- /package/out/{util → modules}/api/components.d.ts +0 -0
- /package/out/{util → modules}/api/components.js +0 -0
- /package/out/{handlers → modules}/form-data-display.js +0 -0
- /package/out/{handlers → modules}/form-data-save.js +0 -0
- /package/out/{models/job.js → modules/integration/util/types.js} +0 -0
package/out/models/index.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectPermissions = exports.UserPermissions = exports.SyncSchedule = exports.SyncCondition = exports.RequestMethods = exports.Provider = exports.ContextOptionsTypes = exports.ContextOptionsLocations = exports.EditorMode = exports.ProcessFileJobType = exports.SubscriptionInfoType = exports.AccountType = exports.Scope = exports.AuthenticationType = void 0;
|
|
4
|
-
var AuthenticationType;
|
|
5
|
-
(function (AuthenticationType) {
|
|
6
|
-
AuthenticationType["CODE"] = "authorization_code";
|
|
7
|
-
AuthenticationType["APP"] = "crowdin_app";
|
|
8
|
-
})(AuthenticationType = exports.AuthenticationType || (exports.AuthenticationType = {}));
|
|
9
|
-
var Scope;
|
|
10
|
-
(function (Scope) {
|
|
11
|
-
Scope["ALL_SCOPES"] = "all";
|
|
12
|
-
Scope["NOTIFICATIONS"] = "notification";
|
|
13
|
-
Scope["TRANSLATION_MEMORIES"] = "tm";
|
|
14
|
-
Scope["MACHINE_TRANSLATION_ENGINES"] = "mt";
|
|
15
|
-
Scope["GLOSSARIES"] = "glossary";
|
|
16
|
-
Scope["USERS"] = "user";
|
|
17
|
-
Scope["TEAMS"] = "team";
|
|
18
|
-
Scope["GROUPS"] = "group";
|
|
19
|
-
Scope["PROJECTS"] = "project";
|
|
20
|
-
Scope["TASKS"] = "project.task";
|
|
21
|
-
Scope["REPORTS"] = "project.report";
|
|
22
|
-
Scope["TRANSLATION_STATUS"] = "project.status";
|
|
23
|
-
Scope["SOURCE_FILES_AND_STRINGS"] = "project.source";
|
|
24
|
-
Scope["WEBHOOKS"] = "project.webhook";
|
|
25
|
-
Scope["TRANSLATIONS"] = "project.translation";
|
|
26
|
-
Scope["SCREENSHOTS"] = "project.screenshot";
|
|
27
|
-
Scope["SECURITY_LOGS"] = "security-log";
|
|
28
|
-
Scope["VENDORS"] = "vendor";
|
|
29
|
-
})(Scope = exports.Scope || (exports.Scope = {}));
|
|
30
|
-
var AccountType;
|
|
31
|
-
(function (AccountType) {
|
|
32
|
-
AccountType["NORMAL"] = "normal";
|
|
33
|
-
AccountType["ENTERPRISE"] = "enterprise";
|
|
34
|
-
})(AccountType = exports.AccountType || (exports.AccountType = {}));
|
|
35
|
-
var SubscriptionInfoType;
|
|
36
|
-
(function (SubscriptionInfoType) {
|
|
37
|
-
SubscriptionInfoType["TRIAL"] = "trial";
|
|
38
|
-
SubscriptionInfoType["SUBSCRIPTION"] = "subscription";
|
|
39
|
-
})(SubscriptionInfoType = exports.SubscriptionInfoType || (exports.SubscriptionInfoType = {}));
|
|
40
|
-
var ProcessFileJobType;
|
|
41
|
-
(function (ProcessFileJobType) {
|
|
42
|
-
ProcessFileJobType["PARSE_FILE"] = "parse-file";
|
|
43
|
-
ProcessFileJobType["BUILD_FILE"] = "build-file";
|
|
44
|
-
ProcessFileJobType["PRE_IMPORT"] = "pre-import-file";
|
|
45
|
-
ProcessFileJobType["POST_IMPORT"] = "post-import-file";
|
|
46
|
-
ProcessFileJobType["PRE_EXPORT"] = "pre-export-file";
|
|
47
|
-
ProcessFileJobType["POST_EXPORT"] = "post-export-file";
|
|
48
|
-
})(ProcessFileJobType = exports.ProcessFileJobType || (exports.ProcessFileJobType = {}));
|
|
49
|
-
var EditorMode;
|
|
50
|
-
(function (EditorMode) {
|
|
51
|
-
EditorMode["ASSETS"] = "assets";
|
|
52
|
-
EditorMode["REVIEW"] = "review";
|
|
53
|
-
EditorMode["TRANSLATE"] = "TRANSLATE";
|
|
54
|
-
EditorMode["PROOFREAD"] = "proofread";
|
|
55
|
-
})(EditorMode = exports.EditorMode || (exports.EditorMode = {}));
|
|
56
|
-
var ContextOptionsLocations;
|
|
57
|
-
(function (ContextOptionsLocations) {
|
|
58
|
-
ContextOptionsLocations["TM"] = "tm";
|
|
59
|
-
ContextOptionsLocations["GLOSSARY"] = "glossary";
|
|
60
|
-
ContextOptionsLocations["LANGUAGE"] = "language";
|
|
61
|
-
ContextOptionsLocations["SCREENSHOT"] = "screenshot";
|
|
62
|
-
ContextOptionsLocations["SOURCE_FILE"] = "source_file";
|
|
63
|
-
ContextOptionsLocations["TRANSLATED_FILE"] = "translated_file";
|
|
64
|
-
})(ContextOptionsLocations = exports.ContextOptionsLocations || (exports.ContextOptionsLocations = {}));
|
|
65
|
-
var ContextOptionsTypes;
|
|
66
|
-
(function (ContextOptionsTypes) {
|
|
67
|
-
ContextOptionsTypes["MODAL"] = "modal";
|
|
68
|
-
ContextOptionsTypes["NEW_TAB"] = "new_tab";
|
|
69
|
-
ContextOptionsTypes["REDIRECT"] = "redirect";
|
|
70
|
-
})(ContextOptionsTypes = exports.ContextOptionsTypes || (exports.ContextOptionsTypes = {}));
|
|
71
|
-
var Provider;
|
|
72
|
-
(function (Provider) {
|
|
73
|
-
Provider["CROWDIN"] = "crowdin";
|
|
74
|
-
Provider["INTEGRATION"] = "integration";
|
|
75
|
-
})(Provider = exports.Provider || (exports.Provider = {}));
|
|
76
|
-
var RequestMethods;
|
|
77
|
-
(function (RequestMethods) {
|
|
78
|
-
RequestMethods["GET"] = "GET";
|
|
79
|
-
RequestMethods["POST"] = "POST";
|
|
80
|
-
RequestMethods["PUT"] = "PUT";
|
|
81
|
-
RequestMethods["PATCH"] = "PATCH";
|
|
82
|
-
RequestMethods["DELETE"] = "DELETE";
|
|
83
|
-
})(RequestMethods = exports.RequestMethods || (exports.RequestMethods = {}));
|
|
84
|
-
var SyncCondition;
|
|
85
|
-
(function (SyncCondition) {
|
|
86
|
-
SyncCondition[SyncCondition["ALL"] = 0] = "ALL";
|
|
87
|
-
SyncCondition[SyncCondition["TRANSLATED"] = 1] = "TRANSLATED";
|
|
88
|
-
SyncCondition[SyncCondition["APPROVED"] = 2] = "APPROVED";
|
|
89
|
-
})(SyncCondition = exports.SyncCondition || (exports.SyncCondition = {}));
|
|
90
|
-
var SyncSchedule;
|
|
91
|
-
(function (SyncSchedule) {
|
|
92
|
-
SyncSchedule[SyncSchedule["DISABLED"] = 0] = "DISABLED";
|
|
93
|
-
SyncSchedule[SyncSchedule["ACTIVE"] = 1 || 3 || 6 || 12 || 24] = "ACTIVE";
|
|
94
|
-
})(SyncSchedule = exports.SyncSchedule || (exports.SyncSchedule = {}));
|
|
95
|
-
var UserPermissions;
|
|
96
|
-
(function (UserPermissions) {
|
|
97
|
-
UserPermissions["OWNER"] = "owner";
|
|
98
|
-
UserPermissions["MANAGERS"] = "managers";
|
|
99
|
-
UserPermissions["ALL_MEMBERS"] = "all";
|
|
100
|
-
UserPermissions["GUESTS"] = "guests";
|
|
101
|
-
})(UserPermissions = exports.UserPermissions || (exports.UserPermissions = {}));
|
|
102
|
-
var ProjectPermissions;
|
|
103
|
-
(function (ProjectPermissions) {
|
|
104
|
-
ProjectPermissions["OWN"] = "own";
|
|
105
|
-
ProjectPermissions["RESTRICTED"] = "restricted";
|
|
106
|
-
})(ProjectPermissions = exports.ProjectPermissions || (exports.ProjectPermissions = {}));
|
package/out/util/cron.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import Crowdin from '@crowdin/crowdin-api-client';
|
|
2
|
-
import { Config, CronJob, IntegrationLogic, IntegrationRequest, Provider, UpdateIntegrationRequest } from '../models';
|
|
3
|
-
export declare function runJob(config: Config, integration: IntegrationLogic, job: CronJob): Promise<void>;
|
|
4
|
-
export declare function filesCron(config: Config, integration: IntegrationLogic, period: string): Promise<void>;
|
|
5
|
-
export declare function skipFoldersFromIntegrationRequest(config: Config, integration: IntegrationLogic, projectId: number, crowdinFiles: UpdateIntegrationRequest, crowdinClient: Crowdin): Promise<UpdateIntegrationRequest>;
|
|
6
|
-
export declare function createOrUpdateSyncSettings(config: Config, req: IntegrationRequest, files: any, provider: Provider, onlyCreate?: boolean): Promise<void>;
|
|
7
|
-
export declare function removeFinishedJobs(): Promise<void>;
|
package/out/util/files.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { IntegrationFile, IntegrationLogic, IntegrationRequest, ProcessFileString, SkipIntegrationNodes, TreeItem } from '../models';
|
|
3
|
-
import { JobClient } from '../models/job';
|
|
4
|
-
export declare const MAX_BODY_SIZE: number;
|
|
5
|
-
export declare function storeFile(fileContent: Buffer, folder: string): Promise<string>;
|
|
6
|
-
export declare function getFileContent(url: string): Promise<Buffer>;
|
|
7
|
-
export declare function getFileStrings(url: string): Promise<ProcessFileString[]>;
|
|
8
|
-
export declare function skipFilesByRegex(files: TreeItem[] | undefined, skipIntegrationNodes?: SkipIntegrationNodes): TreeItem[];
|
|
9
|
-
export declare function expandFilesTree(nodes: IntegrationFile[], req: IntegrationRequest, integration: IntegrationLogic, job?: JobClient): Promise<IntegrationFile[]>;
|
package/out/util/webhooks.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import Crowdin from '@crowdin/crowdin-api-client';
|
|
2
|
-
import { WebhooksModel } from '@crowdin/crowdin-api-client/out/webhooks';
|
|
3
|
-
import { AppSettings, Config, CrowdinContextInfo, IntegrationLogic, IntegrationSyncSettings, Provider, UpdateCrowdinWebhookPayloadsArgs, WebhookUrlParams } from '../models';
|
|
4
|
-
export declare const HookEvents: any;
|
|
5
|
-
export declare function encodedUrlParam(config: Config, integration: IntegrationLogic, crowdinContext: CrowdinContextInfo): string;
|
|
6
|
-
export declare function decodedUrlParam(config: Config, data: string): WebhookUrlParams;
|
|
7
|
-
export declare function makeCrowdinWebhookUrl(config: Config, integration: IntegrationLogic, crowdinContext: CrowdinContextInfo): string;
|
|
8
|
-
export declare function registerWebhooks(config: Config, integration: IntegrationLogic, client: Crowdin, crowdinContext: CrowdinContextInfo, apiCredentials: any, appSettings: AppSettings): Promise<void>;
|
|
9
|
-
export declare function unregisterWebhooks(config: Config, integration: IntegrationLogic, client: Crowdin, crowdinContext: CrowdinContextInfo, apiCredentials: any, appSettings: AppSettings): Promise<void>;
|
|
10
|
-
export declare function getCrowdinProjectWebhook(config: Config, client: Crowdin, projectId: number, name: string): Promise<WebhooksModel.Webhook | undefined>;
|
|
11
|
-
export declare function getAllCrowdinProjectWebhooks(config: Config, client: Crowdin, projectId: number): Promise<WebhooksModel.Webhook[]>;
|
|
12
|
-
export declare function registerCrowdinWebhook(config: Config, url: string, client: Crowdin, crowdinContext: CrowdinContextInfo, events: WebhooksModel.Event[]): Promise<void>;
|
|
13
|
-
export declare function updateCrowdinWebhooks(config: Config, client: Crowdin, projectId: number, webhook: WebhooksModel.Webhook, events: WebhooksModel.Event[], url: string): Promise<void>;
|
|
14
|
-
export declare function unregisterCrowdinWebhooks(config: Config, client: Crowdin, projectId: number, webhook: WebhooksModel.Webhook): Promise<void>;
|
|
15
|
-
export declare function unregisterAllCrowdinWebhooks(config: Config, integration: IntegrationLogic, crowdinId: string): Promise<void>;
|
|
16
|
-
export declare function prepareWebhookData(config: Config, integration: IntegrationLogic, webhookUrlParam: string, provider: Provider): Promise<{
|
|
17
|
-
projectId: number;
|
|
18
|
-
crowdinClient: {
|
|
19
|
-
client: Crowdin;
|
|
20
|
-
token: string;
|
|
21
|
-
};
|
|
22
|
-
preparedIntegrationCredentials: any;
|
|
23
|
-
rootFolder: import("@crowdin/crowdin-api-client").SourceFilesModel.Directory | undefined;
|
|
24
|
-
appSettings: AppSettings;
|
|
25
|
-
syncSettings: IntegrationSyncSettings | null;
|
|
26
|
-
}>;
|
|
27
|
-
export declare function updateCrowdinFromWebhookRequest(args: UpdateCrowdinWebhookPayloadsArgs): Promise<void>;
|
|
28
|
-
export declare function listenQueueMessage(config: Config, integration: IntegrationLogic, queueUrl: string, queueName: string): Promise<void>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|