@apimatic/cli 1.1.0-beta.9 → 1.2.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/README.md +117 -14
- package/lib/actions/portal/copilot.d.ts +1 -0
- package/lib/actions/portal/copilot.js +12 -12
- package/lib/actions/portal/copilot.js.map +1 -1
- package/lib/actions/portal/generate.js +7 -1
- package/lib/actions/portal/generate.js.map +1 -1
- package/lib/actions/portal/quickstart.d.ts +1 -0
- package/lib/actions/portal/quickstart.js +79 -10
- package/lib/actions/portal/quickstart.js.map +1 -1
- package/lib/actions/portal/serve.d.ts +1 -0
- package/lib/actions/portal/serve.js +77 -20
- package/lib/actions/portal/serve.js.map +1 -1
- package/lib/actions/portal/toc/new-toc.js +8 -20
- package/lib/actions/portal/toc/new-toc.js.map +1 -1
- package/lib/actions/publishing/profile/list.d.ts +11 -0
- package/lib/actions/publishing/profile/list.js +29 -0
- package/lib/actions/publishing/profile/list.js.map +1 -0
- package/lib/actions/sdk/generate.d.ts +9 -5
- package/lib/actions/sdk/generate.js +74 -46
- package/lib/actions/sdk/generate.js.map +1 -1
- package/lib/actions/sdk/merge-source-tree.d.ts +12 -0
- package/lib/actions/sdk/merge-source-tree.js +78 -0
- package/lib/actions/sdk/merge-source-tree.js.map +1 -0
- package/lib/actions/sdk/publish/interactive.d.ts +13 -0
- package/lib/actions/sdk/publish/interactive.js +105 -0
- package/lib/actions/sdk/publish/interactive.js.map +1 -0
- package/lib/actions/sdk/publish/non-interactive.d.ts +14 -0
- package/lib/actions/sdk/publish/non-interactive.js +101 -0
- package/lib/actions/sdk/publish/non-interactive.js.map +1 -0
- package/lib/actions/sdk/publish.d.ts +18 -0
- package/lib/actions/sdk/publish.js +56 -0
- package/lib/actions/sdk/publish.js.map +1 -0
- package/lib/actions/sdk/quickstart.d.ts +1 -0
- package/lib/actions/sdk/quickstart.js +19 -2
- package/lib/actions/sdk/quickstart.js.map +1 -1
- package/lib/actions/sdk/save-changes.d.ts +8 -0
- package/lib/actions/sdk/save-changes.js +93 -0
- package/lib/actions/sdk/save-changes.js.map +1 -0
- package/lib/application/portal/recipe/recipe-generator.js +14 -29
- package/lib/application/portal/recipe/recipe-generator.js.map +1 -1
- package/lib/application/portal/toc/toc-structure-generator.d.ts +3 -19
- package/lib/application/portal/toc/toc-structure-generator.js +43 -33
- package/lib/application/portal/toc/toc-structure-generator.js.map +1 -1
- package/lib/commands/portal/recipe/new.js +2 -2
- package/lib/commands/portal/recipe/new.js.map +1 -1
- package/lib/commands/portal/serve.js +3 -3
- package/lib/commands/portal/serve.js.map +1 -1
- package/lib/commands/portal/toc/new.js +2 -2
- package/lib/commands/portal/toc/new.js.map +1 -1
- package/lib/commands/publishing/profile/list.d.ts +9 -0
- package/lib/commands/publishing/profile/list.js +28 -0
- package/lib/commands/publishing/profile/list.js.map +1 -0
- package/lib/commands/quickstart.js +1 -1
- package/lib/commands/quickstart.js.map +1 -1
- package/lib/commands/sdk/generate.d.ts +6 -2
- package/lib/commands/sdk/generate.js +35 -9
- package/lib/commands/sdk/generate.js.map +1 -1
- package/lib/commands/sdk/publish.d.ts +18 -0
- package/lib/commands/sdk/publish.js +73 -0
- package/lib/commands/sdk/publish.js.map +1 -0
- package/lib/commands/sdk/save-changes.d.ts +14 -0
- package/lib/commands/sdk/save-changes.js +51 -0
- package/lib/commands/sdk/save-changes.js.map +1 -0
- package/lib/hooks/not-found.js +1 -1
- package/lib/hooks/not-found.js.map +1 -1
- package/lib/infrastructure/debounce-service.js +3 -0
- package/lib/infrastructure/debounce-service.js.map +1 -1
- package/lib/infrastructure/env-info.d.ts +2 -0
- package/lib/infrastructure/env-info.js +23 -12
- package/lib/infrastructure/env-info.js.map +1 -1
- package/lib/infrastructure/file-service.d.ts +9 -0
- package/lib/infrastructure/file-service.js +94 -5
- package/lib/infrastructure/file-service.js.map +1 -1
- package/lib/infrastructure/git-service.d.ts +14 -0
- package/lib/infrastructure/git-service.js +90 -0
- package/lib/infrastructure/git-service.js.map +1 -0
- package/lib/infrastructure/launcher-service.d.ts +5 -0
- package/lib/infrastructure/launcher-service.js +35 -2
- package/lib/infrastructure/launcher-service.js.map +1 -1
- package/lib/infrastructure/os-extensions.d.ts +2 -0
- package/lib/infrastructure/os-extensions.js +6 -0
- package/lib/infrastructure/os-extensions.js.map +1 -0
- package/lib/infrastructure/service-error.d.ts +14 -2
- package/lib/infrastructure/service-error.js +26 -9
- package/lib/infrastructure/service-error.js.map +1 -1
- package/lib/infrastructure/services/api-service.d.ts +1 -0
- package/lib/infrastructure/services/api-service.js +26 -2
- package/lib/infrastructure/services/api-service.js.map +1 -1
- package/lib/infrastructure/services/portal-service.d.ts +11 -2
- package/lib/infrastructure/services/portal-service.js +123 -18
- package/lib/infrastructure/services/portal-service.js.map +1 -1
- package/lib/infrastructure/services/publishing-api-service.d.ts +19 -0
- package/lib/infrastructure/services/publishing-api-service.js +111 -0
- package/lib/infrastructure/services/publishing-api-service.js.map +1 -0
- package/lib/infrastructure/services/validation-service.d.ts +21 -0
- package/lib/infrastructure/services/validation-service.js +94 -4
- package/lib/infrastructure/services/validation-service.js.map +1 -1
- package/lib/infrastructure/zip-service.d.ts +2 -2
- package/lib/infrastructure/zip-service.js +46 -25
- package/lib/infrastructure/zip-service.js.map +1 -1
- package/lib/prompts/format.d.ts +0 -2
- package/lib/prompts/format.js +0 -31
- package/lib/prompts/format.js.map +1 -1
- package/lib/prompts/portal/generate.d.ts +1 -1
- package/lib/prompts/portal/generate.js +9 -3
- package/lib/prompts/portal/generate.js.map +1 -1
- package/lib/prompts/portal/quickstart.d.ts +11 -2
- package/lib/prompts/portal/quickstart.js +80 -13
- package/lib/prompts/portal/quickstart.js.map +1 -1
- package/lib/prompts/portal/serve.d.ts +4 -0
- package/lib/prompts/portal/serve.js +20 -1
- package/lib/prompts/portal/serve.js.map +1 -1
- package/lib/prompts/portal/toc/new-toc.d.ts +2 -2
- package/lib/prompts/portal/toc/new-toc.js +3 -3
- package/lib/prompts/portal/toc/new-toc.js.map +1 -1
- package/lib/prompts/prompt.d.ts +6 -0
- package/lib/prompts/prompt.js +45 -0
- package/lib/prompts/prompt.js.map +1 -1
- package/lib/prompts/publishing/profile/list.d.ts +9 -0
- package/lib/prompts/publishing/profile/list.js +27 -0
- package/lib/prompts/publishing/profile/list.js.map +1 -0
- package/lib/prompts/sdk/generate.d.ts +7 -3
- package/lib/prompts/sdk/generate.js +25 -13
- package/lib/prompts/sdk/generate.js.map +1 -1
- package/lib/prompts/sdk/merge-source-tree.d.ts +22 -0
- package/lib/prompts/sdk/merge-source-tree.js +90 -0
- package/lib/prompts/sdk/merge-source-tree.js.map +1 -0
- package/lib/prompts/sdk/publish/interactive.d.ts +30 -0
- package/lib/prompts/sdk/publish/interactive.js +139 -0
- package/lib/prompts/sdk/publish/interactive.js.map +1 -0
- package/lib/prompts/sdk/publish/non-interactive.d.ts +27 -0
- package/lib/prompts/sdk/publish/non-interactive.js +97 -0
- package/lib/prompts/sdk/publish/non-interactive.js.map +1 -0
- package/lib/prompts/sdk/publish.d.ts +12 -0
- package/lib/prompts/sdk/publish.js +16 -0
- package/lib/prompts/sdk/publish.js.map +1 -0
- package/lib/prompts/sdk/quickstart.d.ts +4 -1
- package/lib/prompts/sdk/quickstart.js +30 -13
- package/lib/prompts/sdk/quickstart.js.map +1 -1
- package/lib/prompts/sdk/save-changes.d.ts +21 -0
- package/lib/prompts/sdk/save-changes.js +84 -0
- package/lib/prompts/sdk/save-changes.js.map +1 -0
- package/lib/types/api/account.d.ts +1 -0
- package/lib/types/build/build.d.ts +82 -2
- package/lib/types/build/build.js +161 -0
- package/lib/types/build/build.js.map +1 -1
- package/lib/types/build-context.d.ts +14 -1
- package/lib/types/build-context.js +82 -4
- package/lib/types/build-context.js.map +1 -1
- package/lib/types/events/sdk-changes-saved.d.ts +8 -0
- package/lib/types/events/sdk-changes-saved.js +11 -0
- package/lib/types/events/sdk-changes-saved.js.map +1 -0
- package/lib/types/events/sdk-changes-tracked.d.ts +8 -0
- package/lib/types/events/sdk-changes-tracked.js +11 -0
- package/lib/types/events/sdk-changes-tracked.js.map +1 -0
- package/lib/types/events/sdk-conflicts-resolved.d.ts +8 -0
- package/lib/types/events/sdk-conflicts-resolved.js +11 -0
- package/lib/types/events/sdk-conflicts-resolved.js.map +1 -0
- package/lib/types/events/sdk-publish-validation-failed.d.ts +5 -0
- package/lib/types/events/sdk-publish-validation-failed.js +8 -0
- package/lib/types/events/sdk-publish-validation-failed.js.map +1 -0
- package/lib/types/file/directory.d.ts +10 -1
- package/lib/types/file/directory.js +63 -5
- package/lib/types/file/directory.js.map +1 -1
- package/lib/types/file/directoryPath.js.map +1 -1
- package/lib/types/file/urlPath.d.ts +4 -0
- package/lib/types/file/urlPath.js +9 -0
- package/lib/types/file/urlPath.js.map +1 -1
- package/lib/types/merge-source-tree-context.d.ts +28 -0
- package/lib/types/merge-source-tree-context.js +63 -0
- package/lib/types/merge-source-tree-context.js.map +1 -0
- package/lib/types/package-settings-context.d.ts +10 -0
- package/lib/types/package-settings-context.js +20 -0
- package/lib/types/package-settings-context.js.map +1 -0
- package/lib/types/publish/package-settings-configuration.d.ts +74 -0
- package/lib/types/publish/package-settings-configuration.js +2 -0
- package/lib/types/publish/package-settings-configuration.js.map +1 -0
- package/lib/types/publish/profile-id.d.ts +10 -0
- package/lib/types/publish/profile-id.js +22 -0
- package/lib/types/publish/profile-id.js.map +1 -0
- package/lib/types/publish/publishing-profile.d.ts +26 -0
- package/lib/types/publish/publishing-profile.js +154 -0
- package/lib/types/publish/publishing-profile.js.map +1 -0
- package/lib/types/publish/publishing-profiles.d.ts +12 -0
- package/lib/types/publish/publishing-profiles.js +36 -0
- package/lib/types/publish/publishing-profiles.js.map +1 -0
- package/lib/types/publish/version.d.ts +7 -0
- package/lib/types/publish/version.js +17 -0
- package/lib/types/publish/version.js.map +1 -0
- package/lib/types/publish-api/publish-log.d.ts +20 -0
- package/lib/types/publish-api/publish-log.js +2 -0
- package/lib/types/publish-api/publish-log.js.map +1 -0
- package/lib/types/publish-api/publishing-info.d.ts +4 -0
- package/lib/types/publish-api/publishing-info.js +2 -0
- package/lib/types/publish-api/publishing-info.js.map +1 -0
- package/lib/types/publish-api/publishing-profile-item.d.ts +190 -0
- package/lib/types/publish-api/publishing-profile-item.js +6 -0
- package/lib/types/publish-api/publishing-profile-item.js.map +1 -0
- package/lib/types/save-changes-context.d.ts +17 -0
- package/lib/types/save-changes-context.js +42 -0
- package/lib/types/save-changes-context.js.map +1 -0
- package/lib/types/sdk/generate.d.ts +18 -0
- package/lib/types/sdk/generate.js +25 -0
- package/lib/types/sdk/generate.js.map +1 -1
- package/lib/types/sdk-context.d.ts +5 -4
- package/lib/types/sdk-context.js +26 -13
- package/lib/types/sdk-context.js.map +1 -1
- package/lib/types/sdl/sdl.d.ts +0 -28
- package/lib/types/sdl/sdl.js +1 -128
- package/lib/types/sdl/sdl.js.map +1 -1
- package/lib/types/spec-context.js.map +1 -1
- package/lib/types/temp-context.js.map +1 -1
- package/lib/types/toc/toc-components.d.ts +37 -0
- package/lib/types/toc/toc-components.js +97 -0
- package/lib/types/toc/toc-components.js.map +1 -0
- package/lib/types/toc/toc.d.ts +11 -0
- package/lib/utils/string-utils.d.ts +0 -1
- package/lib/utils/string-utils.js +0 -42
- package/lib/utils/string-utils.js.map +1 -1
- package/package.json +28 -20
- package/lib/types/versioned-build-context.d.ts +0 -15
- package/lib/types/versioned-build-context.js +0 -28
- package/lib/types/versioned-build-context.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-settings-configuration.js","sourceRoot":"","sources":["../../../src/types/publish/package-settings-configuration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Result } from 'neverthrow';
|
|
2
|
+
import { PublishingProfileItem } from '../publish-api/publishing-profile-item.js';
|
|
3
|
+
export declare class ProfileId {
|
|
4
|
+
private readonly value;
|
|
5
|
+
private constructor();
|
|
6
|
+
static createFromPublishingProfileItem(profile: PublishingProfileItem): ProfileId;
|
|
7
|
+
static tryCreate(value: string): Result<ProfileId, string>;
|
|
8
|
+
isEqual(other: ProfileId): boolean;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ok, err } from 'neverthrow';
|
|
2
|
+
export class ProfileId {
|
|
3
|
+
constructor(value) {
|
|
4
|
+
this.value = value;
|
|
5
|
+
}
|
|
6
|
+
static createFromPublishingProfileItem(profile) {
|
|
7
|
+
return new ProfileId(profile.id);
|
|
8
|
+
}
|
|
9
|
+
static tryCreate(value) {
|
|
10
|
+
if (!value || value.trim() === '') {
|
|
11
|
+
return err('Profile ID cannot be empty.');
|
|
12
|
+
}
|
|
13
|
+
return ok(new ProfileId(value));
|
|
14
|
+
}
|
|
15
|
+
isEqual(other) {
|
|
16
|
+
return this.value === other.value;
|
|
17
|
+
}
|
|
18
|
+
toString() {
|
|
19
|
+
return this.value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=profile-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-id.js","sourceRoot":"","sources":["../../../src/types/publish/profile-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAG7C,MAAM,OAAO,SAAS;IAGpB,YAAoB,KAAa;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAEM,MAAM,CAAC,+BAA+B,CAAC,OAA8B;QAC1E,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,KAAa;QACnC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAClC,OAAO,GAAG,CAAC,6BAA6B,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,EAAE,CAAC,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,OAAO,CAAC,KAAgB;QAC7B,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IACpC,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Language } from '../sdk/generate.js';
|
|
2
|
+
import { PublishingProfileItem, PublishingProfileSummaryGroup, PublishingProfileWithLanguagesGroup, PublishType } from '../publish-api/publishing-profile-item.js';
|
|
3
|
+
import { PackageConfigurationData } from './package-settings-configuration.js';
|
|
4
|
+
export declare class PublishingProfile {
|
|
5
|
+
private readonly profile;
|
|
6
|
+
private readonly languageConfigs;
|
|
7
|
+
private readonly gitConfigs;
|
|
8
|
+
private constructor();
|
|
9
|
+
static create(item: PublishingProfileItem): PublishingProfile;
|
|
10
|
+
toString(): string;
|
|
11
|
+
hasEnabledLanguages(): boolean;
|
|
12
|
+
isLanguageEnabled(language: Language): boolean;
|
|
13
|
+
getEnabledLanguages(): Language[];
|
|
14
|
+
getPublishTypesForLanguage(language: Language): PublishType[];
|
|
15
|
+
getUnallowedPublishTypes(language: Language, requestedTypes: PublishType[]): PublishType[];
|
|
16
|
+
toPublishingProfileSummaryGroup(): PublishingProfileSummaryGroup;
|
|
17
|
+
toPublishingProfileWithLanguagesGroup(): PublishingProfileWithLanguagesGroup;
|
|
18
|
+
getPackageConfigurationDataForLanguage(language: Language): PackageConfigurationData | undefined;
|
|
19
|
+
private static createCSharpConfiguration;
|
|
20
|
+
private static createJavaConfiguration;
|
|
21
|
+
private static createPhpConfiguration;
|
|
22
|
+
private static createPythonConfiguration;
|
|
23
|
+
private static createRubyConfiguration;
|
|
24
|
+
private static createTypeScriptConfiguration;
|
|
25
|
+
private static createGoConfiguration;
|
|
26
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Language } from '../sdk/generate.js';
|
|
2
|
+
import { PublishType, } from '../publish-api/publishing-profile-item.js';
|
|
3
|
+
export class PublishingProfile {
|
|
4
|
+
constructor(profile) {
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
6
|
+
this.profile = profile;
|
|
7
|
+
this.languageConfigs = Object.fromEntries([
|
|
8
|
+
[Language.CSHARP, ((_a = profile.cSharpConfiguration) === null || _a === void 0 ? void 0 : _a.isEnabled) ? PublishingProfile.createCSharpConfiguration(profile.cSharpConfiguration) : undefined],
|
|
9
|
+
[Language.GO, ((_b = profile.goConfiguration) === null || _b === void 0 ? void 0 : _b.isEnabled) ? PublishingProfile.createGoConfiguration(profile.goConfiguration) : undefined],
|
|
10
|
+
[Language.JAVA, ((_c = profile.javaConfiguration) === null || _c === void 0 ? void 0 : _c.isEnabled) ? PublishingProfile.createJavaConfiguration(profile.javaConfiguration) : undefined],
|
|
11
|
+
[Language.PHP, ((_d = profile.phpConfiguration) === null || _d === void 0 ? void 0 : _d.isEnabled) ? PublishingProfile.createPhpConfiguration(profile.phpConfiguration) : undefined],
|
|
12
|
+
[Language.PYTHON, ((_e = profile.pythonConfiguration) === null || _e === void 0 ? void 0 : _e.isEnabled) ? PublishingProfile.createPythonConfiguration(profile.pythonConfiguration) : undefined],
|
|
13
|
+
[Language.RUBY, ((_f = profile.rubyConfiguration) === null || _f === void 0 ? void 0 : _f.isEnabled) ? PublishingProfile.createRubyConfiguration(profile.rubyConfiguration) : undefined],
|
|
14
|
+
[Language.TYPESCRIPT, ((_g = profile.typeScriptConfiguration) === null || _g === void 0 ? void 0 : _g.isEnabled) ? PublishingProfile.createTypeScriptConfiguration(profile.typeScriptConfiguration) : undefined]
|
|
15
|
+
].filter(([, data]) => data !== undefined));
|
|
16
|
+
this.gitConfigs = Object.fromEntries([
|
|
17
|
+
[Language.CSHARP, ((_h = profile.cSharpGitConfiguration) === null || _h === void 0 ? void 0 : _h.isEnabled) ? profile.cSharpGitConfiguration : undefined],
|
|
18
|
+
[Language.GO, ((_j = profile.goGitConfiguration) === null || _j === void 0 ? void 0 : _j.isEnabled) ? profile.goGitConfiguration : undefined],
|
|
19
|
+
[Language.JAVA, ((_k = profile.javaGitConfiguration) === null || _k === void 0 ? void 0 : _k.isEnabled) ? profile.javaGitConfiguration : undefined],
|
|
20
|
+
[Language.PHP, ((_l = profile.phpGitConfiguration) === null || _l === void 0 ? void 0 : _l.isEnabled) ? profile.phpGitConfiguration : undefined],
|
|
21
|
+
[Language.PYTHON, ((_m = profile.pythonGitConfiguration) === null || _m === void 0 ? void 0 : _m.isEnabled) ? profile.pythonGitConfiguration : undefined],
|
|
22
|
+
[Language.RUBY, ((_o = profile.rubyGitConfiguration) === null || _o === void 0 ? void 0 : _o.isEnabled) ? profile.rubyGitConfiguration : undefined],
|
|
23
|
+
[Language.TYPESCRIPT, ((_p = profile.typeScriptGitConfiguration) === null || _p === void 0 ? void 0 : _p.isEnabled) ? profile.typeScriptGitConfiguration : undefined]
|
|
24
|
+
].filter(([, config]) => config !== undefined));
|
|
25
|
+
}
|
|
26
|
+
static create(item) {
|
|
27
|
+
return new PublishingProfile(item);
|
|
28
|
+
}
|
|
29
|
+
toString() {
|
|
30
|
+
return this.profile.name;
|
|
31
|
+
}
|
|
32
|
+
hasEnabledLanguages() {
|
|
33
|
+
return Object.keys(this.languageConfigs).length > 0 || Object.keys(this.gitConfigs).length > 0;
|
|
34
|
+
}
|
|
35
|
+
isLanguageEnabled(language) {
|
|
36
|
+
return language in this.languageConfigs || language in this.gitConfigs;
|
|
37
|
+
}
|
|
38
|
+
getEnabledLanguages() {
|
|
39
|
+
return [...new Set([...Object.keys(this.languageConfigs), ...Object.keys(this.gitConfigs)])];
|
|
40
|
+
}
|
|
41
|
+
getPublishTypesForLanguage(language) {
|
|
42
|
+
const types = [];
|
|
43
|
+
if (language in this.gitConfigs)
|
|
44
|
+
types.push(PublishType.SourceCodePublishing);
|
|
45
|
+
if (language in this.languageConfigs)
|
|
46
|
+
types.push(PublishType.PackagePublishing);
|
|
47
|
+
return types;
|
|
48
|
+
}
|
|
49
|
+
getUnallowedPublishTypes(language, requestedTypes) {
|
|
50
|
+
const allowedTypes = this.getPublishTypesForLanguage(language);
|
|
51
|
+
return requestedTypes.filter((pt) => !allowedTypes.includes(pt));
|
|
52
|
+
}
|
|
53
|
+
toPublishingProfileSummaryGroup() {
|
|
54
|
+
return {
|
|
55
|
+
apiGroupName: this.profile.apiGroupName,
|
|
56
|
+
profiles: [{ name: this.profile.name, id: this.profile.id, enabledLanguages: this.getEnabledLanguages() }]
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
toPublishingProfileWithLanguagesGroup() {
|
|
60
|
+
return {
|
|
61
|
+
apiGroupName: this.profile.apiGroupName,
|
|
62
|
+
profiles: [
|
|
63
|
+
{
|
|
64
|
+
profile: this.profile,
|
|
65
|
+
enabledLanguages: this.getEnabledLanguages()
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
getPackageConfigurationDataForLanguage(language) {
|
|
71
|
+
return this.languageConfigs[language];
|
|
72
|
+
}
|
|
73
|
+
static createCSharpConfiguration(config) {
|
|
74
|
+
return {
|
|
75
|
+
packageId: config.packageId,
|
|
76
|
+
authors: config.authors,
|
|
77
|
+
description: config.description,
|
|
78
|
+
title: config.title,
|
|
79
|
+
packageTags: config.packageTags,
|
|
80
|
+
repositoryUrl: config.repositoryUrl,
|
|
81
|
+
repositoryType: config.repositoryType,
|
|
82
|
+
packageProjectUrl: config.packageProjectUrl,
|
|
83
|
+
packageIcon: config.packageIcon,
|
|
84
|
+
packageReleaseNotes: config.packageReleaseNotes,
|
|
85
|
+
copyright: config.copyright
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static createJavaConfiguration(config) {
|
|
89
|
+
return {
|
|
90
|
+
groupId: config.groupId,
|
|
91
|
+
artifactId: config.artifactId,
|
|
92
|
+
name: config.name,
|
|
93
|
+
description: config.description,
|
|
94
|
+
url: config.url,
|
|
95
|
+
developers: config.developers,
|
|
96
|
+
distributionManagement: config.distributionManagement,
|
|
97
|
+
scm: config.scm
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static createPhpConfiguration(config) {
|
|
101
|
+
return {
|
|
102
|
+
vendorName: config.vendorName,
|
|
103
|
+
projectName: config.projectName,
|
|
104
|
+
description: config.description,
|
|
105
|
+
type: config.type,
|
|
106
|
+
keywords: config.keywords,
|
|
107
|
+
homepage: config.homepage,
|
|
108
|
+
authors: config.authors,
|
|
109
|
+
support: config.support
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
static createPythonConfiguration(config) {
|
|
113
|
+
return {
|
|
114
|
+
name: config.name,
|
|
115
|
+
description: config.description,
|
|
116
|
+
authors: config.authors,
|
|
117
|
+
maintainers: config.maintainers,
|
|
118
|
+
keywords: config.keywords,
|
|
119
|
+
classifiers: config.classifiers,
|
|
120
|
+
urls: Object.fromEntries(config.urls.map(({ key, value }) => [key, value]))
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
static createRubyConfiguration(config) {
|
|
124
|
+
return {
|
|
125
|
+
name: config.name,
|
|
126
|
+
authors: config.authors,
|
|
127
|
+
summary: config.summary,
|
|
128
|
+
description: config.description,
|
|
129
|
+
email: config.email,
|
|
130
|
+
homepage: config.homepage,
|
|
131
|
+
metadata: Object.fromEntries(config.metadata.map(({ key, value }) => [key, value])),
|
|
132
|
+
postInstallMessage: config.postInstallMessage,
|
|
133
|
+
requirements: config.requirements
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static createTypeScriptConfiguration(config) {
|
|
137
|
+
return {
|
|
138
|
+
name: config.name,
|
|
139
|
+
author: config.author,
|
|
140
|
+
description: config.description,
|
|
141
|
+
contributors: config.contributors,
|
|
142
|
+
bugs: config.bugs,
|
|
143
|
+
homepage: config.homepage,
|
|
144
|
+
keywords: config.keywords,
|
|
145
|
+
repository: config.repository,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
static createGoConfiguration(config) {
|
|
149
|
+
return {
|
|
150
|
+
packageName: config.packageName
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=publishing-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishing-profile.js","sourceRoot":"","sources":["../../../src/types/publish/publishing-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAWL,WAAW,GACZ,MAAM,2CAA2C,CAAC;AAanD,MAAM,OAAO,iBAAiB;IAK5B,YAAoB,OAA8B;;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,WAAW,CAErC;YACE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAA,MAAA,OAAO,CAAC,mBAAmB,0CAAE,SAAS,EAAC,CAAC,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAChJ,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAA,MAAA,OAAO,CAAC,eAAe,0CAAE,SAAS,EAAC,CAAC,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAChI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA,MAAA,OAAO,CAAC,iBAAiB,0CAAE,SAAS,EAAC,CAAC,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACxI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAA,MAAA,OAAO,CAAC,gBAAgB,0CAAE,SAAS,EAAC,CAAC,CAAC,iBAAiB,CAAC,sBAAsB,CAA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M,CAAC,IAAI;YACjB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACR,CAAC;IAEO,MAAM,CAAC,qBAAqB,CAAC,MAA2B;QAC9D,OAAO;YACD,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC,CAAC;IACR,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Result } from 'neverthrow';
|
|
2
|
+
import { PublishingProfileItem, PublishingProfileSummaryGroup, PublishingProfileWithLanguagesGroup } from '../publish-api/publishing-profile-item.js';
|
|
3
|
+
import { PublishingProfile } from './publishing-profile.js';
|
|
4
|
+
export declare class PublishingProfiles {
|
|
5
|
+
private readonly items;
|
|
6
|
+
private constructor();
|
|
7
|
+
static create(items: PublishingProfileItem[]): Result<PublishingProfiles, string>;
|
|
8
|
+
getActiveProfiles(): PublishingProfile[];
|
|
9
|
+
toActiveProfilesGroups(): PublishingProfileWithLanguagesGroup[];
|
|
10
|
+
toPublishingProfileSummariesByApiGroups(): PublishingProfileSummaryGroup[];
|
|
11
|
+
private groupByApiGroup;
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { err, ok } from 'neverthrow';
|
|
2
|
+
import { PublishingProfile } from './publishing-profile.js';
|
|
3
|
+
export class PublishingProfiles {
|
|
4
|
+
constructor(items) {
|
|
5
|
+
this.items = items;
|
|
6
|
+
}
|
|
7
|
+
static create(items) {
|
|
8
|
+
if (items.length === 0) {
|
|
9
|
+
return err('No publishing profiles found. Please create a publishing profile on the APIMatic App before publishing an SDK.');
|
|
10
|
+
}
|
|
11
|
+
return ok(new PublishingProfiles(items.map((item) => PublishingProfile.create(item))));
|
|
12
|
+
}
|
|
13
|
+
getActiveProfiles() {
|
|
14
|
+
return this.items.filter((p) => p.hasEnabledLanguages());
|
|
15
|
+
}
|
|
16
|
+
toActiveProfilesGroups() {
|
|
17
|
+
return this.groupByApiGroup(this.getActiveProfiles().map((p) => p.toPublishingProfileWithLanguagesGroup()));
|
|
18
|
+
}
|
|
19
|
+
toPublishingProfileSummariesByApiGroups() {
|
|
20
|
+
return this.groupByApiGroup(this.items.map((p) => p.toPublishingProfileSummaryGroup()));
|
|
21
|
+
}
|
|
22
|
+
groupByApiGroup(entries) {
|
|
23
|
+
const map = new Map();
|
|
24
|
+
for (const entry of entries) {
|
|
25
|
+
const existing = map.get(entry.apiGroupName);
|
|
26
|
+
if (existing) {
|
|
27
|
+
existing.profiles.push(...entry.profiles);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
map.set(entry.apiGroupName, Object.assign(Object.assign({}, entry), { profiles: [...entry.profiles] }));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return [...map.values()];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=publishing-profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishing-profiles.js","sourceRoot":"","sources":["../../../src/types/publish/publishing-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,EAAE,EAAU,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,kBAAkB;IAC7B,YAAqC,KAA0B;QAA1B,UAAK,GAAL,KAAK,CAAqB;IAAG,CAAC;IAE5D,MAAM,CAAC,MAAM,CAAC,KAA8B;QACjD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO,GAAG,CAAC,gHAAgH,CAAC,CAAC;QAC/H,CAAC;QAED,OAAO,EAAE,CA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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ok, err } from 'neverthrow';
|
|
2
|
+
export class SemVersion {
|
|
3
|
+
constructor(value) {
|
|
4
|
+
this.value = value;
|
|
5
|
+
}
|
|
6
|
+
static tryCreate(value) {
|
|
7
|
+
const parts = value.split('.');
|
|
8
|
+
if (parts.length !== 3 || !parts.every((p) => p !== '' && !isNaN(Number(p)) && Number(p) >= 0)) {
|
|
9
|
+
return err('Invalid version format. Expected major.minor.patch (e.g., 1.0.0).');
|
|
10
|
+
}
|
|
11
|
+
return ok(new SemVersion(value));
|
|
12
|
+
}
|
|
13
|
+
toString() {
|
|
14
|
+
return this.value;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/types/publish/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,OAAO,UAAU;IAGrB,YAAoB,KAAa;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,KAAa;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YAC/F,OAAO,GAAG,CAAC,mEAAmE,CAAC,CAAC;QAClF,CAAC;QACD,OAAO,EAAE,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type SdkLanguage = "CSharp" | "Java" | "Php" | "Python" | "Ruby" | "TypeScript";
|
|
2
|
+
type PublishType = "Package" | "SourceCode";
|
|
3
|
+
type PublishEventType = "Queued" | "InProgress" | "Succeeded" | "Failed" | "Exception" | "InternalError";
|
|
4
|
+
export interface PublishLogEventItem {
|
|
5
|
+
sdkLanguage: SdkLanguage;
|
|
6
|
+
languageVersion: string;
|
|
7
|
+
publishType: PublishType;
|
|
8
|
+
eventType: PublishEventType;
|
|
9
|
+
inProgressTimeStamp: string | null;
|
|
10
|
+
timeStamp: string;
|
|
11
|
+
logUrl: string | null;
|
|
12
|
+
sdkUrl: string | null;
|
|
13
|
+
packageUrl: string | null;
|
|
14
|
+
sourceUrl: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface PublishLogItem {
|
|
17
|
+
publishLogId: string;
|
|
18
|
+
events: PublishLogEventItem[];
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-log.js","sourceRoot":"","sources":["../../../src/types/publish-api/publish-log.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishing-info.js","sourceRoot":"","sources":["../../../src/types/publish-api/publishing-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Language } from '../sdk/generate.js';
|
|
2
|
+
export declare enum PublishType {
|
|
3
|
+
PackagePublishing = "package",
|
|
4
|
+
SourceCodePublishing = "sourcecode"
|
|
5
|
+
}
|
|
6
|
+
export interface KeyValueItem {
|
|
7
|
+
key: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GitConfigurationItem {
|
|
11
|
+
isEnabled: boolean;
|
|
12
|
+
credentialsId: string;
|
|
13
|
+
repositoryName: string;
|
|
14
|
+
branch: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CSharpConfigurationItem {
|
|
17
|
+
isEnabled: boolean;
|
|
18
|
+
credentialsId: string;
|
|
19
|
+
packageId: string;
|
|
20
|
+
authors: string | null;
|
|
21
|
+
description: string | null;
|
|
22
|
+
title: string | null;
|
|
23
|
+
packageTags: string | null;
|
|
24
|
+
repositoryUrl: string | null;
|
|
25
|
+
repositoryType: string | null;
|
|
26
|
+
packageProjectUrl: string | null;
|
|
27
|
+
packageIcon: string | null;
|
|
28
|
+
packageReleaseNotes: string | null;
|
|
29
|
+
copyright: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface GoConfigurationItem {
|
|
32
|
+
isEnabled: boolean;
|
|
33
|
+
credentialsId: string;
|
|
34
|
+
packageName: string;
|
|
35
|
+
}
|
|
36
|
+
export interface JavaDeveloper {
|
|
37
|
+
name: string;
|
|
38
|
+
email: string;
|
|
39
|
+
organization: string | null;
|
|
40
|
+
organizationUrl: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface JavaSnapShotRepository {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string | null;
|
|
45
|
+
url: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface JavaDistributionManagement {
|
|
48
|
+
snapShotRepository: JavaSnapShotRepository;
|
|
49
|
+
}
|
|
50
|
+
export interface JavaScm {
|
|
51
|
+
connection: string;
|
|
52
|
+
developerConnection: string;
|
|
53
|
+
url: string;
|
|
54
|
+
}
|
|
55
|
+
export interface JavaConfigurationItem {
|
|
56
|
+
isEnabled: boolean;
|
|
57
|
+
credentialsId: string;
|
|
58
|
+
groupId: string;
|
|
59
|
+
artifactId: string;
|
|
60
|
+
name: string;
|
|
61
|
+
description: string;
|
|
62
|
+
url: string;
|
|
63
|
+
developers: JavaDeveloper[];
|
|
64
|
+
distributionManagement: JavaDistributionManagement;
|
|
65
|
+
scm: JavaScm;
|
|
66
|
+
}
|
|
67
|
+
export interface PhpAuthor {
|
|
68
|
+
name: string | null;
|
|
69
|
+
email: string | null;
|
|
70
|
+
homepage: string | null;
|
|
71
|
+
role: string | null;
|
|
72
|
+
}
|
|
73
|
+
export interface PhpSupport {
|
|
74
|
+
email: string | null;
|
|
75
|
+
issues: string | null;
|
|
76
|
+
forum: string | null;
|
|
77
|
+
wiki: string | null;
|
|
78
|
+
irc: string | null;
|
|
79
|
+
chat: string | null;
|
|
80
|
+
source: string | null;
|
|
81
|
+
docs: string | null;
|
|
82
|
+
rss: string | null;
|
|
83
|
+
}
|
|
84
|
+
export interface PhpConfigurationItem {
|
|
85
|
+
isEnabled: boolean;
|
|
86
|
+
credentialsId: string;
|
|
87
|
+
gitCredentialsId: string;
|
|
88
|
+
repositoryName: string;
|
|
89
|
+
branchName: string;
|
|
90
|
+
vendorName: string;
|
|
91
|
+
projectName: string;
|
|
92
|
+
description: string;
|
|
93
|
+
type: string | null;
|
|
94
|
+
keywords: string[];
|
|
95
|
+
homepage: string | null;
|
|
96
|
+
authors: PhpAuthor[];
|
|
97
|
+
support: PhpSupport;
|
|
98
|
+
releaseNotes: string | null;
|
|
99
|
+
}
|
|
100
|
+
export interface PythonPerson {
|
|
101
|
+
email: string | null;
|
|
102
|
+
name: string | null;
|
|
103
|
+
}
|
|
104
|
+
export interface PythonConfigurationItem {
|
|
105
|
+
isEnabled: boolean;
|
|
106
|
+
credentialsId: string;
|
|
107
|
+
name: string;
|
|
108
|
+
description: string | null;
|
|
109
|
+
authors: PythonPerson[];
|
|
110
|
+
maintainers: PythonPerson[];
|
|
111
|
+
keywords: string[];
|
|
112
|
+
classifiers: string[];
|
|
113
|
+
urls: KeyValueItem[];
|
|
114
|
+
}
|
|
115
|
+
export interface RubyConfigurationItem {
|
|
116
|
+
isEnabled: boolean;
|
|
117
|
+
credentialsId: string;
|
|
118
|
+
name: string;
|
|
119
|
+
authors: string[];
|
|
120
|
+
summary: string;
|
|
121
|
+
description: string | null;
|
|
122
|
+
email: string[];
|
|
123
|
+
homepage: string | null;
|
|
124
|
+
metadata: KeyValueItem[];
|
|
125
|
+
postInstallMessage: string | null;
|
|
126
|
+
requirements: string[];
|
|
127
|
+
}
|
|
128
|
+
export interface TsPerson {
|
|
129
|
+
name: string | null;
|
|
130
|
+
email: string | null;
|
|
131
|
+
url: string | null;
|
|
132
|
+
}
|
|
133
|
+
export interface TsBugs {
|
|
134
|
+
url: string | null;
|
|
135
|
+
email: string | null;
|
|
136
|
+
}
|
|
137
|
+
export interface TsRepository {
|
|
138
|
+
type: string | null;
|
|
139
|
+
url: string | null;
|
|
140
|
+
directory: string | null;
|
|
141
|
+
}
|
|
142
|
+
export interface TypeScriptConfigurationItem {
|
|
143
|
+
isEnabled: boolean;
|
|
144
|
+
credentialsId: string;
|
|
145
|
+
name: string;
|
|
146
|
+
author: TsPerson;
|
|
147
|
+
description: string | null;
|
|
148
|
+
contributors: TsPerson[];
|
|
149
|
+
bugs: TsBugs;
|
|
150
|
+
keywords: string[];
|
|
151
|
+
homepage: string | null;
|
|
152
|
+
repository: TsRepository;
|
|
153
|
+
}
|
|
154
|
+
export interface PublishingProfileItem {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
apiGroupId: string;
|
|
158
|
+
apiGroupName: string;
|
|
159
|
+
cSharpConfiguration: CSharpConfigurationItem | null;
|
|
160
|
+
goConfiguration: GoConfigurationItem | null;
|
|
161
|
+
javaConfiguration: JavaConfigurationItem | null;
|
|
162
|
+
phpConfiguration: PhpConfigurationItem | null;
|
|
163
|
+
pythonConfiguration: PythonConfigurationItem | null;
|
|
164
|
+
rubyConfiguration: RubyConfigurationItem | null;
|
|
165
|
+
typeScriptConfiguration: TypeScriptConfigurationItem | null;
|
|
166
|
+
cSharpGitConfiguration: GitConfigurationItem | null;
|
|
167
|
+
goGitConfiguration: GitConfigurationItem | null;
|
|
168
|
+
javaGitConfiguration: GitConfigurationItem | null;
|
|
169
|
+
phpGitConfiguration: GitConfigurationItem | null;
|
|
170
|
+
pythonGitConfiguration: GitConfigurationItem | null;
|
|
171
|
+
rubyGitConfiguration: GitConfigurationItem | null;
|
|
172
|
+
typeScriptGitConfiguration: GitConfigurationItem | null;
|
|
173
|
+
}
|
|
174
|
+
export interface PublishingProfileWithLanguages {
|
|
175
|
+
profile: PublishingProfileItem;
|
|
176
|
+
enabledLanguages: Language[];
|
|
177
|
+
}
|
|
178
|
+
export interface PublishingProfileWithLanguagesGroup {
|
|
179
|
+
apiGroupName: string;
|
|
180
|
+
profiles: PublishingProfileWithLanguages[];
|
|
181
|
+
}
|
|
182
|
+
export interface PublishingProfileSummary {
|
|
183
|
+
name: string;
|
|
184
|
+
id: string;
|
|
185
|
+
enabledLanguages: Language[];
|
|
186
|
+
}
|
|
187
|
+
export interface PublishingProfileSummaryGroup {
|
|
188
|
+
apiGroupName: string;
|
|
189
|
+
profiles: PublishingProfileSummary[];
|
|
190
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishing-profile-item.js","sourceRoot":"","sources":["../../../src/types/publish-api/publishing-profile-item.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4CAA6B,CAAA;IAC7B,kDAAmC,CAAA;AACrC,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Directory } from "./file/directory.js";
|
|
2
|
+
import { DirectoryPath } from "./file/directoryPath.js";
|
|
3
|
+
import { FilePath } from "./file/filePath.js";
|
|
4
|
+
import { Language } from "./sdk/generate.js";
|
|
5
|
+
export declare class SaveChangesContext {
|
|
6
|
+
private readonly sourceTreePath;
|
|
7
|
+
private readonly sdkReviewDirectory;
|
|
8
|
+
private readonly fileService;
|
|
9
|
+
private readonly zipService;
|
|
10
|
+
private readonly gitService;
|
|
11
|
+
private readonly sdkInputDirectory;
|
|
12
|
+
constructor(sourceTreePath: FilePath, sdkReviewDirectory: DirectoryPath, sdkInputDirectory: DirectoryPath | undefined, workingDirectory: DirectoryPath, language: Language, version: string | undefined);
|
|
13
|
+
isSdkInputDirectoryMissing(onMissingDirectory: (directory: DirectoryPath) => void): Promise<boolean>;
|
|
14
|
+
getChangesForReviewDirectory(): Promise<Directory>;
|
|
15
|
+
cleanUpSdkReviewDirectory(onCleanUpFailure: () => void): Promise<void>;
|
|
16
|
+
saveSourceTree(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FileService } from "../infrastructure/file-service.js";
|
|
2
|
+
import { GitService } from "../infrastructure/git-service.js";
|
|
3
|
+
import { ZipService } from "../infrastructure/zip-service.js";
|
|
4
|
+
import { FileName } from "./file/fileName.js";
|
|
5
|
+
export class SaveChangesContext {
|
|
6
|
+
constructor(sourceTreePath, sdkReviewDirectory, sdkInputDirectory, workingDirectory, language, version) {
|
|
7
|
+
this.sourceTreePath = sourceTreePath;
|
|
8
|
+
this.sdkReviewDirectory = sdkReviewDirectory;
|
|
9
|
+
this.fileService = new FileService();
|
|
10
|
+
this.zipService = new ZipService();
|
|
11
|
+
this.gitService = new GitService();
|
|
12
|
+
this.sdkInputDirectory = sdkInputDirectory !== null && sdkInputDirectory !== void 0 ? sdkInputDirectory : (version
|
|
13
|
+
? workingDirectory.join("sdk").join(version).join(language)
|
|
14
|
+
: workingDirectory.join("sdk").join(language));
|
|
15
|
+
}
|
|
16
|
+
async isSdkInputDirectoryMissing(onMissingDirectory) {
|
|
17
|
+
if (await this.fileService.directoryEmpty(this.sdkInputDirectory)) {
|
|
18
|
+
onMissingDirectory(this.sdkInputDirectory);
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
async getChangesForReviewDirectory() {
|
|
24
|
+
const sdkGitDir = this.sdkReviewDirectory.join(".git");
|
|
25
|
+
await this.fileService.createDirectoryIfNotExists(sdkGitDir);
|
|
26
|
+
await this.zipService.unArchive(this.sourceTreePath, sdkGitDir);
|
|
27
|
+
await this.gitService.checkoutCustomBranch(this.sdkReviewDirectory);
|
|
28
|
+
await this.fileService.cleanDirectoryExcluding(this.sdkReviewDirectory, [new FileName(".git")]);
|
|
29
|
+
await this.fileService.copyDirectoryExcluding(this.sdkInputDirectory, this.sdkReviewDirectory, [new FileName(".git")]);
|
|
30
|
+
return this.gitService.getDirectoryWithUpdatedFiles(this.sdkReviewDirectory);
|
|
31
|
+
}
|
|
32
|
+
async cleanUpSdkReviewDirectory(onCleanUpFailure) {
|
|
33
|
+
await this.fileService.pollDeleteDirectory(this.sdkReviewDirectory, onCleanUpFailure);
|
|
34
|
+
}
|
|
35
|
+
async saveSourceTree() {
|
|
36
|
+
const sdkGitDir = this.sdkReviewDirectory.join(".git");
|
|
37
|
+
await this.gitService.commitReviewedChanges(this.sdkReviewDirectory);
|
|
38
|
+
await this.gitService.forceCheckoutMainBranch(this.sdkReviewDirectory);
|
|
39
|
+
await this.zipService.archive(sdkGitDir, this.sourceTreePath);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=save-changes-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-changes-context.js","sourceRoot":"","sources":["../../src/types/save-changes-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAI9C,MAAM,OAAO,kBAAkB;IAM7B,YACmB,cAAwB,EACxB,kBAAiC,EAClD,iBAA4C,EAC5C,gBAA+B,EAC/B,QAAkB,EAClB,OAA2B;QALV,mBAAc,GAAd,cAAc,CAAU;QACxB,uBAAkB,GAAlB,kBAAkB,CAAe;QAPnC,gBAAW,GAAG,IAAI,WAAW,EAAE,CAAC;QAChC,eAAU,GAAG,IAAI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