@expo/eas-build-job 1.0.133 → 1.0.136

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/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './artifacts';
9
9
  export * from './context';
10
10
  export * from './generic';
11
11
  export * from './step';
12
+ export * from './submission-config';
package/dist/index.js CHANGED
@@ -46,4 +46,5 @@ __exportStar(require("./artifacts"), exports);
46
46
  __exportStar(require("./context"), exports);
47
47
  __exportStar(require("./generic"), exports);
48
48
  __exportStar(require("./step"), exports);
49
+ __exportStar(require("./submission-config"), exports);
49
50
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,mCAYkB;AAXhB,2GAAA,iBAAiB,OAAA;AAEjB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAGV,uCAAkG;AAA/E,4GAAA,gBAAgB,OAAA;AAAqB,iHAAA,qBAAqB,OAAA;AAC7E,wCAAsB;AACtB,yCAAuB;AACvB,mDAAmC;AACnC,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB","sourcesContent":["export * as Android from './android';\nexport * as Ios from './ios';\nexport {\n ArchiveSourceType,\n ArchiveSource,\n BuildMode,\n BuildPhaseStats,\n BuildTrigger,\n Env,\n EnvironmentSecret,\n EnvironmentSecretType,\n Workflow,\n Platform,\n Cache,\n} from './common';\nexport { Metadata, sanitizeMetadata, FingerprintSource, FingerprintSourceType } from './metadata';\nexport * from './job';\nexport * from './logs';\nexport * as errors from './errors';\nexport * from './artifacts';\nexport * from './context';\nexport * from './generic';\nexport * from './step';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,mCAYkB;AAXhB,2GAAA,iBAAiB,OAAA;AAEjB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAGV,uCAAkG;AAA/E,4GAAA,gBAAgB,OAAA;AAAqB,iHAAA,qBAAqB,OAAA;AAC7E,wCAAsB;AACtB,yCAAuB;AACvB,mDAAmC;AACnC,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB;AACvB,sDAAoC","sourcesContent":["export * as Android from './android';\nexport * as Ios from './ios';\nexport {\n ArchiveSourceType,\n ArchiveSource,\n BuildMode,\n BuildPhaseStats,\n BuildTrigger,\n Env,\n EnvironmentSecret,\n EnvironmentSecretType,\n Workflow,\n Platform,\n Cache,\n} from './common';\nexport { Metadata, sanitizeMetadata, FingerprintSource, FingerprintSourceType } from './metadata';\nexport * from './job';\nexport * from './logs';\nexport * as errors from './errors';\nexport * from './artifacts';\nexport * from './context';\nexport * from './generic';\nexport * from './step';\nexport * from './submission-config';\n"]}
@@ -0,0 +1,101 @@
1
+ import { z } from 'zod';
2
+ /** Submission config as used by the submission worker. */
3
+ export declare namespace SubmissionConfig {
4
+ type Ios = z.infer<typeof Ios.SchemaZ>;
5
+ type Android = z.infer<typeof Android.SchemaZ>;
6
+ namespace Ios {
7
+ const SchemaZ: z.ZodIntersection<z.ZodObject<{
8
+ /**
9
+ * App Store Connect unique App ID
10
+ */
11
+ ascAppIdentifier: z.ZodString;
12
+ isVerboseFastlaneEnabled: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ ascAppIdentifier: string;
15
+ isVerboseFastlaneEnabled?: boolean | undefined;
16
+ }, {
17
+ ascAppIdentifier: string;
18
+ isVerboseFastlaneEnabled?: boolean | undefined;
19
+ }>, z.ZodUnion<[z.ZodObject<{
20
+ appleIdUsername: z.ZodString;
21
+ appleAppSpecificPassword: z.ZodString;
22
+ ascApiJsonKey: z.ZodOptional<z.ZodNever>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ appleIdUsername: string;
25
+ appleAppSpecificPassword: string;
26
+ ascApiJsonKey?: undefined;
27
+ }, {
28
+ appleIdUsername: string;
29
+ appleAppSpecificPassword: string;
30
+ ascApiJsonKey?: undefined;
31
+ }>, z.ZodObject<{
32
+ /**
33
+ * ASC API JSON token example:
34
+ * {
35
+ * key_id: "D383SF739",
36
+ * issuer_id: "6053b7fe-68a8-4acb-89be-165aa6465141",
37
+ * key: "-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM\n-----END PRIVATE KEY--"
38
+ * }
39
+ */
40
+ ascApiJsonKey: z.ZodString;
41
+ appleIdUsername: z.ZodOptional<z.ZodNever>;
42
+ appleAppSpecificPassword: z.ZodOptional<z.ZodNever>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ ascApiJsonKey: string;
45
+ appleIdUsername?: undefined;
46
+ appleAppSpecificPassword?: undefined;
47
+ }, {
48
+ ascApiJsonKey: string;
49
+ appleIdUsername?: undefined;
50
+ appleAppSpecificPassword?: undefined;
51
+ }>]>>;
52
+ }
53
+ namespace Android {
54
+ enum ReleaseStatus {
55
+ COMPLETED = "completed",
56
+ DRAFT = "draft",
57
+ HALTED = "halted",
58
+ IN_PROGRESS = "inProgress"
59
+ }
60
+ enum ReleaseTrack {
61
+ PRODUCTION = "production",
62
+ BETA = "beta",
63
+ ALPHA = "alpha",
64
+ INTERNAL = "internal"
65
+ }
66
+ const SchemaZ: z.ZodIntersection<z.ZodObject<{
67
+ track: z.ZodNativeEnum<typeof ReleaseTrack>;
68
+ changesNotSentForReview: z.ZodDefault<z.ZodBoolean>;
69
+ googleServiceAccountKeyJson: z.ZodString;
70
+ isVerboseFastlaneEnabled: z.ZodOptional<z.ZodBoolean>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ track: ReleaseTrack;
73
+ changesNotSentForReview: boolean;
74
+ googleServiceAccountKeyJson: string;
75
+ isVerboseFastlaneEnabled?: boolean | undefined;
76
+ }, {
77
+ track: ReleaseTrack;
78
+ googleServiceAccountKeyJson: string;
79
+ isVerboseFastlaneEnabled?: boolean | undefined;
80
+ changesNotSentForReview?: boolean | undefined;
81
+ }>, z.ZodUnion<[z.ZodObject<{
82
+ releaseStatus: z.ZodLiteral<ReleaseStatus.IN_PROGRESS>;
83
+ rollout: z.ZodDefault<z.ZodNumber>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ releaseStatus: ReleaseStatus.IN_PROGRESS;
86
+ rollout: number;
87
+ }, {
88
+ releaseStatus: ReleaseStatus.IN_PROGRESS;
89
+ rollout?: number | undefined;
90
+ }>, z.ZodObject<{
91
+ releaseStatus: z.ZodOptional<z.ZodNativeEnum<typeof ReleaseStatus>>;
92
+ rollout: z.ZodOptional<z.ZodNever>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ releaseStatus?: ReleaseStatus | undefined;
95
+ rollout?: undefined;
96
+ }, {
97
+ releaseStatus?: ReleaseStatus | undefined;
98
+ rollout?: undefined;
99
+ }>]>>;
100
+ }
101
+ }
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmissionConfig = void 0;
4
+ const zod_1 = require("zod");
5
+ /** Submission config as used by the submission worker. */
6
+ var SubmissionConfig;
7
+ (function (SubmissionConfig) {
8
+ let Ios;
9
+ (function (Ios) {
10
+ Ios.SchemaZ = zod_1.z
11
+ .object({
12
+ /**
13
+ * App Store Connect unique App ID
14
+ */
15
+ ascAppIdentifier: zod_1.z.string(),
16
+ isVerboseFastlaneEnabled: zod_1.z.boolean().optional(),
17
+ })
18
+ .and(zod_1.z.union([
19
+ zod_1.z.object({
20
+ // The `appleIdUsername` & `appleAppSpecificPassword` pair is mutually exclusive with `ascApiJsonKey`
21
+ appleIdUsername: zod_1.z.string(),
22
+ appleAppSpecificPassword: zod_1.z.string(),
23
+ ascApiJsonKey: zod_1.z.never().optional(),
24
+ }),
25
+ zod_1.z.object({
26
+ /**
27
+ * ASC API JSON token example:
28
+ * {
29
+ * key_id: "D383SF739",
30
+ * issuer_id: "6053b7fe-68a8-4acb-89be-165aa6465141",
31
+ * key: "-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM\n-----END PRIVATE KEY--"
32
+ * }
33
+ */
34
+ ascApiJsonKey: zod_1.z.string(),
35
+ appleIdUsername: zod_1.z.never().optional(),
36
+ appleAppSpecificPassword: zod_1.z.never().optional(),
37
+ }),
38
+ ]));
39
+ })(Ios = SubmissionConfig.Ios || (SubmissionConfig.Ios = {}));
40
+ let Android;
41
+ (function (Android) {
42
+ let ReleaseStatus;
43
+ (function (ReleaseStatus) {
44
+ ReleaseStatus["COMPLETED"] = "completed";
45
+ ReleaseStatus["DRAFT"] = "draft";
46
+ ReleaseStatus["HALTED"] = "halted";
47
+ ReleaseStatus["IN_PROGRESS"] = "inProgress";
48
+ })(ReleaseStatus = Android.ReleaseStatus || (Android.ReleaseStatus = {}));
49
+ let ReleaseTrack;
50
+ (function (ReleaseTrack) {
51
+ ReleaseTrack["PRODUCTION"] = "production";
52
+ ReleaseTrack["BETA"] = "beta";
53
+ ReleaseTrack["ALPHA"] = "alpha";
54
+ ReleaseTrack["INTERNAL"] = "internal";
55
+ })(ReleaseTrack = Android.ReleaseTrack || (Android.ReleaseTrack = {}));
56
+ Android.SchemaZ = zod_1.z
57
+ .object({
58
+ track: zod_1.z.nativeEnum(ReleaseTrack),
59
+ changesNotSentForReview: zod_1.z.boolean().default(false),
60
+ googleServiceAccountKeyJson: zod_1.z.string(),
61
+ isVerboseFastlaneEnabled: zod_1.z.boolean().optional(),
62
+ })
63
+ .and(zod_1.z.union([
64
+ zod_1.z.object({
65
+ releaseStatus: zod_1.z.literal(ReleaseStatus.IN_PROGRESS),
66
+ rollout: zod_1.z.number().gte(0).lte(1).default(1),
67
+ }),
68
+ zod_1.z.object({
69
+ releaseStatus: zod_1.z.nativeEnum(ReleaseStatus).optional(),
70
+ rollout: zod_1.z.never().optional(),
71
+ }),
72
+ ]));
73
+ })(Android = SubmissionConfig.Android || (SubmissionConfig.Android = {}));
74
+ })(SubmissionConfig || (exports.SubmissionConfig = SubmissionConfig = {}));
75
+ //# sourceMappingURL=submission-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submission-config.js","sourceRoot":"","sources":["../src/submission-config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAA0D;AAC1D,IAAiB,gBAAgB,CAyEhC;AAzED,WAAiB,gBAAgB;IAI/B,IAAiB,GAAG,CAgCnB;IAhCD,WAAiB,GAAG;QACL,WAAO,GAAG,OAAC;aACrB,MAAM,CAAC;YACN;;eAEG;YACH,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;YAC5B,wBAAwB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;SACjD,CAAC;aACD,GAAG,CACF,OAAC,CAAC,KAAK,CAAC;YACN,OAAC,CAAC,MAAM,CAAC;gBACP,qGAAqG;gBACrG,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;gBAC3B,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE;gBACpC,aAAa,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;aACpC,CAAC;YACF,OAAC,CAAC,MAAM,CAAC;gBACP;;;;;;;mBAOG;gBACH,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;gBACzB,eAAe,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;gBACrC,wBAAwB,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;aAC/C,CAAC;SACH,CAAC,CACH,CA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C,EAlCgB,OAAO,GAAP,wBAAO,KAAP,wBAAO,QAkCvB;AACH,CAAC,EAzEgB,gBAAgB,gCAAhB,gBAAgB,QAyEhC","sourcesContent":["import { z } from 'zod';\n\n/** Submission config as used by the submission worker. */\nexport namespace SubmissionConfig {\n export type Ios = z.infer<typeof Ios.SchemaZ>;\n export type Android = z.infer<typeof Android.SchemaZ>;\n\n export namespace Ios {\n export const SchemaZ = z\n .object({\n /**\n * App Store Connect unique App ID\n */\n ascAppIdentifier: z.string(),\n isVerboseFastlaneEnabled: z.boolean().optional(),\n })\n .and(\n z.union([\n z.object({\n // The `appleIdUsername` & `appleAppSpecificPassword` pair is mutually exclusive with `ascApiJsonKey`\n appleIdUsername: z.string(),\n appleAppSpecificPassword: z.string(),\n ascApiJsonKey: z.never().optional(),\n }),\n z.object({\n /**\n * ASC API JSON token example:\n * {\n * key_id: \"D383SF739\",\n * issuer_id: \"6053b7fe-68a8-4acb-89be-165aa6465141\",\n * key: \"-----BEGIN PRIVATE KEY-----\\nMIGTAgEAMBMGByqGSM\\n-----END PRIVATE KEY--\"\n * }\n */\n ascApiJsonKey: z.string(),\n appleIdUsername: z.never().optional(),\n appleAppSpecificPassword: z.never().optional(),\n }),\n ])\n );\n }\n\n export namespace Android {\n export enum ReleaseStatus {\n COMPLETED = 'completed',\n DRAFT = 'draft',\n HALTED = 'halted',\n IN_PROGRESS = 'inProgress',\n }\n\n export enum ReleaseTrack {\n PRODUCTION = 'production',\n BETA = 'beta',\n ALPHA = 'alpha',\n INTERNAL = 'internal',\n }\n\n export const SchemaZ = z\n .object({\n track: z.nativeEnum(ReleaseTrack),\n changesNotSentForReview: z.boolean().default(false),\n googleServiceAccountKeyJson: z.string(),\n isVerboseFastlaneEnabled: z.boolean().optional(),\n })\n .and(\n z.union([\n z.object({\n releaseStatus: z.literal(ReleaseStatus.IN_PROGRESS),\n rollout: z.number().gte(0).lte(1).default(1),\n }),\n z.object({\n releaseStatus: z.nativeEnum(ReleaseStatus).optional(),\n rollout: z.never().optional(),\n }),\n ])\n );\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "1.0.133",
3
+ "version": "1.0.136",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -35,5 +35,5 @@
35
35
  "node": "20.14.0",
36
36
  "yarn": "1.22.21"
37
37
  },
38
- "gitHead": "663a32c90301ed057eaf4a0304b4897cfec73275"
38
+ "gitHead": "40ec258852b8f40ceaaeaaa0b5c35125cc098676"
39
39
  }