@shopify/cli-kit 1.1.1 → 2.0.3
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/CHANGELOG.md +24 -0
- package/dist/{index-8fb3a5d8.js → index-cee0245d.js} +119294 -117289
- package/dist/index-cee0245d.js.map +1 -0
- package/dist/index.d.ts +319 -40
- package/dist/index.js +1 -1
- package/dist/{multipart-parser-561fdeba.js → multipart-parser-b4090c19.js} +2 -2
- package/dist/{multipart-parser-561fdeba.js.map → multipart-parser-b4090c19.js.map} +1 -1
- package/package.json +12 -8
- package/dist/index-8fb3a5d8.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,11 @@ import { platform } from 'node:process';
|
|
|
10
10
|
import { z } from 'zod';
|
|
11
11
|
import Conf from 'conf';
|
|
12
12
|
import nodeFetch, { RequestInfo, RequestInit } from 'node-fetch';
|
|
13
|
+
import FormData from 'form-data';
|
|
13
14
|
import semver$1 from 'semver/classes/semver';
|
|
14
15
|
import coerce from 'semver/functions/coerce';
|
|
16
|
+
import * as _oclif_core_lib_interfaces from '@oclif/core/lib/interfaces';
|
|
17
|
+
import { Plugin } from '@oclif/core/lib/interfaces';
|
|
15
18
|
|
|
16
19
|
function _mergeNamespaces(n, m) {
|
|
17
20
|
m.forEach(function (e) {
|
|
@@ -29,7 +32,7 @@ function _mergeNamespaces(n, m) {
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
interface Question {
|
|
32
|
-
type: 'input' | 'select';
|
|
35
|
+
type: 'input' | 'select' | 'autocomplete';
|
|
33
36
|
name: string;
|
|
34
37
|
message: string;
|
|
35
38
|
validate?: (value: string) => string | boolean;
|
|
@@ -63,7 +66,7 @@ declare namespace ui {
|
|
|
63
66
|
* A fatal error represents an error shouldn't be rescued and that causes the execution to terminate.
|
|
64
67
|
* There shouldn't be code that catches fatal errors.
|
|
65
68
|
*/
|
|
66
|
-
declare class Fatal extends Error {
|
|
69
|
+
declare abstract class Fatal extends Error {
|
|
67
70
|
tryMessage: string | null;
|
|
68
71
|
constructor(message: string, tryMessage?: string | null);
|
|
69
72
|
}
|
|
@@ -161,7 +164,7 @@ declare namespace system {
|
|
|
161
164
|
};
|
|
162
165
|
}
|
|
163
166
|
|
|
164
|
-
declare function create
|
|
167
|
+
declare function create(templateContent: string): (data: object) => Promise<string>;
|
|
165
168
|
/**
|
|
166
169
|
* Given a directory, it traverses the files and directories recursively
|
|
167
170
|
* and replaces variables in directory and file names, and files' content
|
|
@@ -173,10 +176,11 @@ declare function create$1(templateContent: string): (data: object) => Promise<st
|
|
|
173
176
|
*/
|
|
174
177
|
declare function recursiveDirectoryCopy(from: string, to: string, data: any): Promise<void>;
|
|
175
178
|
|
|
179
|
+
declare const template_create: typeof create;
|
|
176
180
|
declare const template_recursiveDirectoryCopy: typeof recursiveDirectoryCopy;
|
|
177
181
|
declare namespace template {
|
|
178
182
|
export {
|
|
179
|
-
|
|
183
|
+
template_create as create,
|
|
180
184
|
template_recursiveDirectoryCopy as recursiveDirectoryCopy,
|
|
181
185
|
};
|
|
182
186
|
}
|
|
@@ -216,8 +220,19 @@ declare namespace string {
|
|
|
216
220
|
};
|
|
217
221
|
}
|
|
218
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Given an absolute filesystem path, it makes it relative to
|
|
225
|
+
* the current working directory. This is useful when logging paths
|
|
226
|
+
* to allow the users to click on the file and let the OS open it
|
|
227
|
+
* in the editor of choice.
|
|
228
|
+
* @param path {string} Path to relativize
|
|
229
|
+
* @returns {string} Relativized path.
|
|
230
|
+
*/
|
|
231
|
+
declare function relativize(path: string): string;
|
|
232
|
+
|
|
219
233
|
var path = /*#__PURE__*/_mergeNamespaces({
|
|
220
234
|
__proto__: null,
|
|
235
|
+
relativize: relativize,
|
|
221
236
|
findUp: findUp,
|
|
222
237
|
glob: fastGlob
|
|
223
238
|
}, [pathe]);
|
|
@@ -313,11 +328,17 @@ declare namespace file {
|
|
|
313
328
|
}
|
|
314
329
|
|
|
315
330
|
declare const factory: simple_git.SimpleGitFactory;
|
|
331
|
+
declare function downloadRepository({ repoUrl, destination }: {
|
|
332
|
+
repoUrl: string;
|
|
333
|
+
destination: string;
|
|
334
|
+
}): Promise<void>;
|
|
316
335
|
|
|
317
336
|
declare const git_factory: typeof factory;
|
|
337
|
+
declare const git_downloadRepository: typeof downloadRepository;
|
|
318
338
|
declare namespace git {
|
|
319
339
|
export {
|
|
320
340
|
git_factory as factory,
|
|
341
|
+
git_downloadRepository as downloadRepository,
|
|
321
342
|
};
|
|
322
343
|
}
|
|
323
344
|
|
|
@@ -449,7 +470,7 @@ interface OutputProcess {
|
|
|
449
470
|
* to send standard output and error data that gets formatted with the
|
|
450
471
|
* right prefix.
|
|
451
472
|
*/
|
|
452
|
-
action: (stdout: Writable, stderr: Writable) => Promise<void>;
|
|
473
|
+
action: (stdout: Writable, stderr: Writable, signal: AbortSignal) => Promise<void>;
|
|
453
474
|
}
|
|
454
475
|
/**
|
|
455
476
|
* Use this function when you have multiple concurrent processes that send data events
|
|
@@ -473,6 +494,7 @@ declare const output_warn: typeof warn;
|
|
|
473
494
|
declare const output_newline: typeof newline;
|
|
474
495
|
declare const output_error: typeof error;
|
|
475
496
|
declare const output_stringifyMessage: typeof stringifyMessage;
|
|
497
|
+
type output_OutputProcess = OutputProcess;
|
|
476
498
|
declare const output_concurrent: typeof concurrent;
|
|
477
499
|
declare const output_shouldDisplayColors: typeof shouldDisplayColors;
|
|
478
500
|
declare namespace output {
|
|
@@ -490,43 +512,98 @@ declare namespace output {
|
|
|
490
512
|
output_newline as newline,
|
|
491
513
|
output_error as error,
|
|
492
514
|
output_stringifyMessage as stringifyMessage,
|
|
515
|
+
output_OutputProcess as OutputProcess,
|
|
493
516
|
output_concurrent as concurrent,
|
|
494
517
|
output_shouldDisplayColors as shouldDisplayColors,
|
|
495
518
|
};
|
|
496
519
|
}
|
|
497
520
|
|
|
498
|
-
declare
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
Pnpm = "pnpm"
|
|
502
|
-
}
|
|
503
|
-
declare const dependencyManager: string[];
|
|
521
|
+
declare const dependencyManager: readonly ["yarn", "npm", "pnpm"];
|
|
522
|
+
declare type DependencyManager = typeof dependencyManager[number];
|
|
523
|
+
declare const PackageJsonNotFoundError: (directory: string) => Bug;
|
|
504
524
|
/**
|
|
505
525
|
* Returns the dependency manager used to run the create workflow.
|
|
506
526
|
* @param env {Object} The environment variables of the process in which the CLI runs.
|
|
507
527
|
* @returns The dependency manager
|
|
508
528
|
*/
|
|
509
529
|
declare function dependencyManagerUsedForCreating(env?: NodeJS.ProcessEnv): DependencyManager;
|
|
530
|
+
interface InstallNPMDependenciesRecursivelyOptions {
|
|
531
|
+
/**
|
|
532
|
+
* The dependency manager to use to install the dependencies.
|
|
533
|
+
*/
|
|
534
|
+
dependencyManager: DependencyManager;
|
|
535
|
+
/**
|
|
536
|
+
* The directory from where we'll find package.json's recursively
|
|
537
|
+
*/
|
|
538
|
+
directory: string;
|
|
539
|
+
/**
|
|
540
|
+
* Specifies the maximum depth of the glob search.
|
|
541
|
+
*/
|
|
542
|
+
deep?: number;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* This function traverses down a directory tree to find directories containing a package.json
|
|
546
|
+
* and installs the dependencies if needed. To know if it's needed, it uses the "check" command
|
|
547
|
+
* provided by dependency managers.
|
|
548
|
+
* @param options {InstallNPMDependenciesRecursivelyOptions} Options to install dependencies recursively.
|
|
549
|
+
*/
|
|
550
|
+
declare function installNPMDependenciesRecursively(options: InstallNPMDependenciesRecursivelyOptions): Promise<void>;
|
|
510
551
|
/**
|
|
511
552
|
* Installs the dependencies in the given directory.
|
|
512
553
|
* @param directory {string} The directory that contains the package.json
|
|
513
554
|
* @param dependencyManager {DependencyManager} The dependency manager to use to install the dependencies.
|
|
514
555
|
* @param stdout {Writable} Standard output stream.
|
|
556
|
+
* @param stderr {Writable} Standard error stream.
|
|
557
|
+
* @param signal {AbortSignal} Abort signal.
|
|
515
558
|
* @returns stderr {Writable} Standard error stream.
|
|
516
559
|
*/
|
|
517
|
-
declare function install(directory: string, dependencyManager: DependencyManager, stdout?: Writable, stderr?: Writable): Promise<void>;
|
|
560
|
+
declare function install(directory: string, dependencyManager: DependencyManager, stdout?: Writable, stderr?: Writable, signal?: AbortSignal): Promise<void>;
|
|
561
|
+
/**
|
|
562
|
+
* Returns the list of production and dev dependencies of a package.json
|
|
563
|
+
* @param packageJsonPath {string} Path to the package.json file
|
|
564
|
+
* @returns A promise that resolves with the list of dependencies.
|
|
565
|
+
*/
|
|
566
|
+
declare function getDependencies(packageJsonPath: string): Promise<string[]>;
|
|
567
|
+
declare type DependencyType = 'dev' | 'prod' | 'peer';
|
|
568
|
+
interface AddNPMDependenciesIfNeededOptions {
|
|
569
|
+
/** How dependencies should be added */
|
|
570
|
+
type: DependencyType;
|
|
571
|
+
/** The dependency manager to use to add dependencies */
|
|
572
|
+
dependencyManager: DependencyManager;
|
|
573
|
+
/** The directory that contains the package.json where dependencies will be added */
|
|
574
|
+
directory: string;
|
|
575
|
+
/** Standard output coming from the underlying installation process */
|
|
576
|
+
stdout?: Writable;
|
|
577
|
+
/** Standard error coming from the underlying installation process */
|
|
578
|
+
stderr?: Writable;
|
|
579
|
+
/** Abort signal to stop the process */
|
|
580
|
+
signal?: AbortSignal;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Adds dependencies to a Node project (i.e. a project that has a package.json)
|
|
584
|
+
* @param dependencies {string[]} List of dependencies to be added.
|
|
585
|
+
* @param options {AddNPMDependenciesIfNeededOptions} Options for adding dependencies.
|
|
586
|
+
*/
|
|
587
|
+
declare function addNPMDependenciesIfNeeded(dependencies: string[], options: AddNPMDependenciesIfNeededOptions): Promise<void>;
|
|
518
588
|
|
|
519
|
-
type dependency_DependencyManager = DependencyManager;
|
|
520
|
-
declare const dependency_DependencyManager: typeof DependencyManager;
|
|
521
589
|
declare const dependency_dependencyManager: typeof dependencyManager;
|
|
590
|
+
type dependency_DependencyManager = DependencyManager;
|
|
591
|
+
declare const dependency_PackageJsonNotFoundError: typeof PackageJsonNotFoundError;
|
|
522
592
|
declare const dependency_dependencyManagerUsedForCreating: typeof dependencyManagerUsedForCreating;
|
|
593
|
+
declare const dependency_installNPMDependenciesRecursively: typeof installNPMDependenciesRecursively;
|
|
523
594
|
declare const dependency_install: typeof install;
|
|
595
|
+
declare const dependency_getDependencies: typeof getDependencies;
|
|
596
|
+
declare const dependency_addNPMDependenciesIfNeeded: typeof addNPMDependenciesIfNeeded;
|
|
524
597
|
declare namespace dependency {
|
|
525
598
|
export {
|
|
526
|
-
dependency_DependencyManager as DependencyManager,
|
|
527
599
|
dependency_dependencyManager as dependencyManager,
|
|
600
|
+
dependency_DependencyManager as DependencyManager,
|
|
601
|
+
dependency_PackageJsonNotFoundError as PackageJsonNotFoundError,
|
|
528
602
|
dependency_dependencyManagerUsedForCreating as dependencyManagerUsedForCreating,
|
|
603
|
+
dependency_installNPMDependenciesRecursively as installNPMDependenciesRecursively,
|
|
529
604
|
dependency_install as install,
|
|
605
|
+
dependency_getDependencies as getDependencies,
|
|
606
|
+
dependency_addNPMDependenciesIfNeeded as addNPMDependenciesIfNeeded,
|
|
530
607
|
};
|
|
531
608
|
}
|
|
532
609
|
|
|
@@ -780,6 +857,7 @@ declare function ensureAuthenticatedAdmin(store: string, scopes?: string[]): Pro
|
|
|
780
857
|
* @returns {OAuthSession} An instance with the access tokens organized by application.
|
|
781
858
|
*/
|
|
782
859
|
declare function ensureAuthenticated(applications: OAuthApplications, env?: NodeJS.ProcessEnv): Promise<OAuthSession>;
|
|
860
|
+
declare function logout(): Promise<void>;
|
|
783
861
|
|
|
784
862
|
type session_OAuthApplications = OAuthApplications;
|
|
785
863
|
type session_AdminSession = AdminSession;
|
|
@@ -788,6 +866,7 @@ declare const session_ensureAuthenticatedPartners: typeof ensureAuthenticatedPar
|
|
|
788
866
|
declare const session_ensureAuthenticatedStorefront: typeof ensureAuthenticatedStorefront;
|
|
789
867
|
declare const session_ensureAuthenticatedAdmin: typeof ensureAuthenticatedAdmin;
|
|
790
868
|
declare const session_ensureAuthenticated: typeof ensureAuthenticated;
|
|
869
|
+
declare const session_logout: typeof logout;
|
|
791
870
|
declare namespace session {
|
|
792
871
|
export {
|
|
793
872
|
session_OAuthApplications as OAuthApplications,
|
|
@@ -797,6 +876,7 @@ declare namespace session {
|
|
|
797
876
|
session_ensureAuthenticatedStorefront as ensureAuthenticatedStorefront,
|
|
798
877
|
session_ensureAuthenticatedAdmin as ensureAuthenticatedAdmin,
|
|
799
878
|
session_ensureAuthenticated as ensureAuthenticated,
|
|
879
|
+
session_logout as logout,
|
|
800
880
|
};
|
|
801
881
|
}
|
|
802
882
|
|
|
@@ -828,19 +908,6 @@ declare namespace yaml {
|
|
|
828
908
|
};
|
|
829
909
|
}
|
|
830
910
|
|
|
831
|
-
interface CreateOptions {
|
|
832
|
-
port: number;
|
|
833
|
-
authToken: string;
|
|
834
|
-
}
|
|
835
|
-
declare function create(options: CreateOptions): Promise<string>;
|
|
836
|
-
|
|
837
|
-
declare const tunnel_create: typeof create;
|
|
838
|
-
declare namespace tunnel {
|
|
839
|
-
export {
|
|
840
|
-
tunnel_create as create,
|
|
841
|
-
};
|
|
842
|
-
}
|
|
843
|
-
|
|
844
911
|
interface CachedAppInfo {
|
|
845
912
|
appId: string;
|
|
846
913
|
orgId?: string;
|
|
@@ -903,16 +970,6 @@ interface FindOrganizationQuerySchema {
|
|
|
903
970
|
id: string;
|
|
904
971
|
businessName: string;
|
|
905
972
|
website: string;
|
|
906
|
-
stores: {
|
|
907
|
-
nodes: {
|
|
908
|
-
shopId: string;
|
|
909
|
-
link: string;
|
|
910
|
-
shopDomain: string;
|
|
911
|
-
shopName: string;
|
|
912
|
-
transferDisabled: boolean;
|
|
913
|
-
convertableToPartnerTest: boolean;
|
|
914
|
-
}[];
|
|
915
|
-
};
|
|
916
973
|
apps: {
|
|
917
974
|
nodes: {
|
|
918
975
|
id: string;
|
|
@@ -945,7 +1002,6 @@ interface CreateAppQueryVariables {
|
|
|
945
1002
|
title: string;
|
|
946
1003
|
appUrl: string;
|
|
947
1004
|
redir: string[];
|
|
948
|
-
type: string;
|
|
949
1005
|
}
|
|
950
1006
|
interface CreateAppQuerySchema {
|
|
951
1007
|
appCreate: {
|
|
@@ -982,6 +1038,121 @@ interface UpdateURLsQuerySchema {
|
|
|
982
1038
|
};
|
|
983
1039
|
}
|
|
984
1040
|
|
|
1041
|
+
declare const FindAppQuery: string;
|
|
1042
|
+
interface FindAppQuerySchema {
|
|
1043
|
+
app: {
|
|
1044
|
+
id: string;
|
|
1045
|
+
title: string;
|
|
1046
|
+
apiKey: string;
|
|
1047
|
+
apiSecretKeys: {
|
|
1048
|
+
secret: string;
|
|
1049
|
+
}[];
|
|
1050
|
+
appType: string;
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
declare const UpdateDraftMutation: string;
|
|
1055
|
+
interface ExtensionUpdateDraftInput {
|
|
1056
|
+
apiKey: string;
|
|
1057
|
+
clientMutationId: string;
|
|
1058
|
+
config: string;
|
|
1059
|
+
context: string | undefined;
|
|
1060
|
+
registrationId: string;
|
|
1061
|
+
}
|
|
1062
|
+
interface ExtensionUpdateDraftPayload {
|
|
1063
|
+
clientMutationId: string;
|
|
1064
|
+
extensionVersion: ExtensionVersion;
|
|
1065
|
+
userErrors: {
|
|
1066
|
+
field: string[];
|
|
1067
|
+
message: string;
|
|
1068
|
+
}[];
|
|
1069
|
+
}
|
|
1070
|
+
interface ExtensionVersion {
|
|
1071
|
+
config: string;
|
|
1072
|
+
context: string;
|
|
1073
|
+
id: string;
|
|
1074
|
+
lastUserInteractionAt: string;
|
|
1075
|
+
location: string;
|
|
1076
|
+
registrationId: string;
|
|
1077
|
+
registrationUuid: string;
|
|
1078
|
+
uuid: string;
|
|
1079
|
+
validationErrors: {
|
|
1080
|
+
field: string[];
|
|
1081
|
+
message: string;
|
|
1082
|
+
}[];
|
|
1083
|
+
versionTag: string;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
declare const GenerateSignedUploadUrl: string;
|
|
1087
|
+
interface GenerateSignedUploadUrlVariables {
|
|
1088
|
+
apiKey: string;
|
|
1089
|
+
deploymentUuid: string;
|
|
1090
|
+
bundleFormat: number;
|
|
1091
|
+
}
|
|
1092
|
+
interface GenerateSignedUploadUrlSchema {
|
|
1093
|
+
deploymentGenerateSignedUploadUrl: {
|
|
1094
|
+
signedUploadUrl: string;
|
|
1095
|
+
userErrors: {
|
|
1096
|
+
field: string[];
|
|
1097
|
+
message: string;
|
|
1098
|
+
}[];
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
declare const CreateDeployment: string;
|
|
1103
|
+
interface CreateDeploymentVariables {
|
|
1104
|
+
apiKey: string;
|
|
1105
|
+
uuid: string;
|
|
1106
|
+
bundleUrl: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface CreateDeploymentSchema {
|
|
1109
|
+
deploymentCreate: {
|
|
1110
|
+
deployment: {
|
|
1111
|
+
uuid: string;
|
|
1112
|
+
};
|
|
1113
|
+
userErrors: {
|
|
1114
|
+
field: string[];
|
|
1115
|
+
message: string;
|
|
1116
|
+
}[];
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
declare const AllStoresByOrganizationQuery: string;
|
|
1121
|
+
interface AllStoresByOrganizationSchema {
|
|
1122
|
+
organizations: {
|
|
1123
|
+
nodes: {
|
|
1124
|
+
id: string;
|
|
1125
|
+
stores: {
|
|
1126
|
+
nodes: {
|
|
1127
|
+
shopId: string;
|
|
1128
|
+
link: string;
|
|
1129
|
+
shopDomain: string;
|
|
1130
|
+
shopName: string;
|
|
1131
|
+
transferDisabled: boolean;
|
|
1132
|
+
convertableToPartnerTest: boolean;
|
|
1133
|
+
}[];
|
|
1134
|
+
};
|
|
1135
|
+
}[];
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
declare const ConvertDevToTestStoreQuery: string;
|
|
1140
|
+
interface ConvertDevToTestStoreVariables {
|
|
1141
|
+
input: {
|
|
1142
|
+
organizationID: number;
|
|
1143
|
+
shopId: string;
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
interface ConvertDevToTestStoreSchema {
|
|
1147
|
+
convertDevToTestStore: {
|
|
1148
|
+
convertedToTestStore: boolean;
|
|
1149
|
+
userErrors: {
|
|
1150
|
+
field: string[];
|
|
1151
|
+
message: string;
|
|
1152
|
+
}[];
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
|
|
985
1156
|
declare const index_FindOrganizationQuery: typeof FindOrganizationQuery;
|
|
986
1157
|
type index_FindOrganizationQuerySchema = FindOrganizationQuerySchema;
|
|
987
1158
|
type index_AllOrganizationsQuerySchema = AllOrganizationsQuerySchema;
|
|
@@ -992,6 +1163,23 @@ type index_CreateAppQuerySchema = CreateAppQuerySchema;
|
|
|
992
1163
|
declare const index_UpdateURLsQuery: typeof UpdateURLsQuery;
|
|
993
1164
|
type index_UpdateURLsQueryVariables = UpdateURLsQueryVariables;
|
|
994
1165
|
type index_UpdateURLsQuerySchema = UpdateURLsQuerySchema;
|
|
1166
|
+
declare const index_FindAppQuery: typeof FindAppQuery;
|
|
1167
|
+
type index_FindAppQuerySchema = FindAppQuerySchema;
|
|
1168
|
+
declare const index_UpdateDraftMutation: typeof UpdateDraftMutation;
|
|
1169
|
+
type index_ExtensionUpdateDraftInput = ExtensionUpdateDraftInput;
|
|
1170
|
+
type index_ExtensionUpdateDraftPayload = ExtensionUpdateDraftPayload;
|
|
1171
|
+
type index_ExtensionVersion = ExtensionVersion;
|
|
1172
|
+
declare const index_GenerateSignedUploadUrl: typeof GenerateSignedUploadUrl;
|
|
1173
|
+
type index_GenerateSignedUploadUrlVariables = GenerateSignedUploadUrlVariables;
|
|
1174
|
+
type index_GenerateSignedUploadUrlSchema = GenerateSignedUploadUrlSchema;
|
|
1175
|
+
declare const index_CreateDeployment: typeof CreateDeployment;
|
|
1176
|
+
type index_CreateDeploymentVariables = CreateDeploymentVariables;
|
|
1177
|
+
type index_CreateDeploymentSchema = CreateDeploymentSchema;
|
|
1178
|
+
declare const index_AllStoresByOrganizationQuery: typeof AllStoresByOrganizationQuery;
|
|
1179
|
+
type index_AllStoresByOrganizationSchema = AllStoresByOrganizationSchema;
|
|
1180
|
+
declare const index_ConvertDevToTestStoreQuery: typeof ConvertDevToTestStoreQuery;
|
|
1181
|
+
type index_ConvertDevToTestStoreVariables = ConvertDevToTestStoreVariables;
|
|
1182
|
+
type index_ConvertDevToTestStoreSchema = ConvertDevToTestStoreSchema;
|
|
995
1183
|
declare namespace index {
|
|
996
1184
|
export {
|
|
997
1185
|
index_FindOrganizationQuery as FindOrganizationQuery,
|
|
@@ -1004,6 +1192,23 @@ declare namespace index {
|
|
|
1004
1192
|
index_UpdateURLsQuery as UpdateURLsQuery,
|
|
1005
1193
|
index_UpdateURLsQueryVariables as UpdateURLsQueryVariables,
|
|
1006
1194
|
index_UpdateURLsQuerySchema as UpdateURLsQuerySchema,
|
|
1195
|
+
index_FindAppQuery as FindAppQuery,
|
|
1196
|
+
index_FindAppQuerySchema as FindAppQuerySchema,
|
|
1197
|
+
index_UpdateDraftMutation as UpdateDraftMutation,
|
|
1198
|
+
index_ExtensionUpdateDraftInput as ExtensionUpdateDraftInput,
|
|
1199
|
+
index_ExtensionUpdateDraftPayload as ExtensionUpdateDraftPayload,
|
|
1200
|
+
index_ExtensionVersion as ExtensionVersion,
|
|
1201
|
+
index_GenerateSignedUploadUrl as GenerateSignedUploadUrl,
|
|
1202
|
+
index_GenerateSignedUploadUrlVariables as GenerateSignedUploadUrlVariables,
|
|
1203
|
+
index_GenerateSignedUploadUrlSchema as GenerateSignedUploadUrlSchema,
|
|
1204
|
+
index_CreateDeployment as CreateDeployment,
|
|
1205
|
+
index_CreateDeploymentVariables as CreateDeploymentVariables,
|
|
1206
|
+
index_CreateDeploymentSchema as CreateDeploymentSchema,
|
|
1207
|
+
index_AllStoresByOrganizationQuery as AllStoresByOrganizationQuery,
|
|
1208
|
+
index_AllStoresByOrganizationSchema as AllStoresByOrganizationSchema,
|
|
1209
|
+
index_ConvertDevToTestStoreQuery as ConvertDevToTestStoreQuery,
|
|
1210
|
+
index_ConvertDevToTestStoreVariables as ConvertDevToTestStoreVariables,
|
|
1211
|
+
index_ConvertDevToTestStoreSchema as ConvertDevToTestStoreSchema,
|
|
1007
1212
|
};
|
|
1008
1213
|
}
|
|
1009
1214
|
|
|
@@ -1031,10 +1236,23 @@ declare type Response = ReturnType<typeof nodeFetch>;
|
|
|
1031
1236
|
*/
|
|
1032
1237
|
declare function fetch(url: RequestInfo, init?: RequestInit): Response;
|
|
1033
1238
|
|
|
1239
|
+
declare function formData(): FormData;
|
|
1240
|
+
|
|
1034
1241
|
declare const http_fetch: typeof fetch;
|
|
1242
|
+
declare const http_formData: typeof formData;
|
|
1035
1243
|
declare namespace http {
|
|
1036
1244
|
export {
|
|
1037
1245
|
http_fetch as fetch,
|
|
1246
|
+
http_formData as formData,
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
declare function zip(inputDirectory: string, outputZipPath: string): Promise<void>;
|
|
1251
|
+
|
|
1252
|
+
declare const archiver_zip: typeof zip;
|
|
1253
|
+
declare namespace archiver {
|
|
1254
|
+
export {
|
|
1255
|
+
archiver_zip as zip,
|
|
1038
1256
|
};
|
|
1039
1257
|
}
|
|
1040
1258
|
|
|
@@ -1124,6 +1342,10 @@ declare namespace npm {
|
|
|
1124
1342
|
};
|
|
1125
1343
|
}
|
|
1126
1344
|
|
|
1345
|
+
/**
|
|
1346
|
+
* Returns an available port in the current environment.
|
|
1347
|
+
* @returns {Promise<number>} A promise that resolves with an availabe port.
|
|
1348
|
+
*/
|
|
1127
1349
|
declare function getRandomPort(): Promise<number>;
|
|
1128
1350
|
|
|
1129
1351
|
declare const port_getRandomPort: typeof getRandomPort;
|
|
@@ -1133,6 +1355,48 @@ declare namespace port {
|
|
|
1133
1355
|
};
|
|
1134
1356
|
}
|
|
1135
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* An object that contains the flags that
|
|
1360
|
+
* are shared across all the commands.
|
|
1361
|
+
*/
|
|
1362
|
+
declare const globalFlags: {
|
|
1363
|
+
verbose: _oclif_core_lib_interfaces.BooleanFlag<boolean>;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
declare const cli_globalFlags: typeof globalFlags;
|
|
1367
|
+
declare namespace cli {
|
|
1368
|
+
export {
|
|
1369
|
+
cli_globalFlags as globalFlags,
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Generates and returns a random UUID.
|
|
1375
|
+
* @returns {string} The random UUID generated.
|
|
1376
|
+
*/
|
|
1377
|
+
declare const generateRandomUUID: () => string;
|
|
1378
|
+
|
|
1379
|
+
declare const id_generateRandomUUID: typeof generateRandomUUID;
|
|
1380
|
+
declare namespace id {
|
|
1381
|
+
export {
|
|
1382
|
+
id_generateRandomUUID as generateRandomUUID,
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Creates a temporary directory and ties its lifeclcycle to the lifecycle of the callback.
|
|
1388
|
+
* @param callback {(string) => void} Callback to execute. When the callback exits, the temporary directory is destroyed.
|
|
1389
|
+
* @returns {Promise<T>} Promise that resolves with the value returned by the callback.
|
|
1390
|
+
*/
|
|
1391
|
+
declare function directory<T>(callback: (directory: string) => Promise<T>): Promise<T>;
|
|
1392
|
+
|
|
1393
|
+
declare const temporary_directory: typeof directory;
|
|
1394
|
+
declare namespace temporary {
|
|
1395
|
+
export {
|
|
1396
|
+
temporary_directory as directory,
|
|
1397
|
+
};
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1136
1400
|
declare const constants: {
|
|
1137
1401
|
environmentVariables: {
|
|
1138
1402
|
unitTest: string;
|
|
@@ -1185,5 +1449,20 @@ declare const constants: {
|
|
|
1185
1449
|
};
|
|
1186
1450
|
};
|
|
1187
1451
|
|
|
1188
|
-
|
|
1452
|
+
interface TunnelPlugin {
|
|
1453
|
+
start: (options: TunnelStartOptions) => Promise<string>;
|
|
1454
|
+
}
|
|
1455
|
+
interface TunnelStartOptions {
|
|
1456
|
+
port: number;
|
|
1457
|
+
}
|
|
1458
|
+
declare function lookupTunnelPlugin(plugins: Plugin[]): Promise<TunnelPlugin | undefined>;
|
|
1459
|
+
|
|
1460
|
+
declare const plugins_lookupTunnelPlugin: typeof lookupTunnelPlugin;
|
|
1461
|
+
declare namespace plugins {
|
|
1462
|
+
export {
|
|
1463
|
+
plugins_lookupTunnelPlugin as lookupTunnelPlugin,
|
|
1464
|
+
};
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
export { api, archiver, checksum, cli, constants, dependency, environment, error$1 as error, file, git, github, http, id, npm, os, output, path, plugins, port, ruby, schema, semver, session, store, string, system, template, temporary, toml, ui, version, yaml };
|
|
1189
1468
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { n as api, r as archiver, w as checksum, C as cli, G as constants, d as dependency, i as environment, e as error, f as file, g as git, c as github, q as http, D as id, A as npm, h as os, o as output, p as path, H as plugins, B as port, x as ruby, k as schema, z as semver, j as session, m as store, b as string, s as system, t as template, E as temporary, l as toml, u as ui, v as version, y as yaml } from './index-cee0245d.js';
|
|
2
2
|
import 'assert';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'readline';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'node:fs';
|
|
2
2
|
import 'node:path';
|
|
3
|
-
import { F as FormData, a as File } from './index-
|
|
3
|
+
import { F as FormData, a as File } from './index-cee0245d.js';
|
|
4
4
|
import 'assert';
|
|
5
5
|
import 'events';
|
|
6
6
|
import 'readline';
|
|
@@ -470,4 +470,4 @@ async function toFormData(Body, ct) {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
export { toFormData };
|
|
473
|
-
//# sourceMappingURL=multipart-parser-
|
|
473
|
+
//# sourceMappingURL=multipart-parser-b4090c19.js.map
|