attio 0.0.1-experimental.20250731 → 0.0.1-experimental.20250802
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/lib/api/api.js +1 -1
- package/lib/api/fetcher.js +2 -2
- package/lib/auth/auth.js +5 -5
- package/lib/auth/keychain.js +1 -1
- package/lib/build/client/generate-client-entry.js +1 -1
- package/lib/build/server/generate-server-entry.js +2 -2
- package/lib/client/components/index.d.ts +1 -1
- package/lib/client/components/index.d.ts.map +1 -1
- package/lib/client/components/index.js.map +1 -1
- package/lib/client/forms/array.d.ts +4 -3
- package/lib/client/forms/array.d.ts.map +1 -1
- package/lib/client/forms/boolean.d.ts +4 -2
- package/lib/client/forms/boolean.d.ts.map +1 -1
- package/lib/client/forms/number.d.ts +7 -7
- package/lib/client/forms/number.d.ts.map +1 -1
- package/lib/client/forms/path.d.ts +6 -6
- package/lib/client/forms/path.d.ts.map +1 -1
- package/lib/client/forms/string.d.ts +9 -9
- package/lib/client/forms/string.d.ts.map +1 -1
- package/lib/client/index.d.ts +10 -10
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/index.js +6 -31
- package/lib/client/index.js.map +1 -1
- package/lib/client/workflow/block-config/config-schema/array.d.ts +3 -1
- package/lib/client/workflow/block-config/config-schema/array.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/attio-record.d.ts +8 -2
- package/lib/client/workflow/block-config/config-schema/attio-record.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/attio-select.d.ts +8 -2
- package/lib/client/workflow/block-config/config-schema/attio-select.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/index.d.ts +3 -3
- package/lib/client/workflow/block-config/config-schema/index.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/index.js.map +1 -1
- package/lib/client/workflow/block-config/config-schema/node.d.ts +11 -3
- package/lib/client/workflow/block-config/config-schema/node.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/number.d.ts +8 -2
- package/lib/client/workflow/block-config/config-schema/number.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/string.d.ts +8 -2
- package/lib/client/workflow/block-config/config-schema/string.d.ts.map +1 -1
- package/lib/client/workflow/block-config/config-schema/struct.d.ts +4 -2
- package/lib/client/workflow/block-config/config-schema/struct.d.ts.map +1 -1
- package/lib/client/workflow/block-config/index.js +3 -16
- package/lib/client/workflow/block-config/index.js.map +1 -1
- package/lib/client/workflow/index.js +2 -15
- package/lib/client/workflow/index.js.map +1 -1
- package/lib/client/workflow/schema-utils/array.d.ts +8 -1
- package/lib/client/workflow/schema-utils/array.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/attio-entity-reference.d.ts +8 -1
- package/lib/client/workflow/schema-utils/attio-entity-reference.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/attio-select.d.ts +8 -1
- package/lib/client/workflow/schema-utils/attio-select.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/base-node.d.ts +4 -1
- package/lib/client/workflow/schema-utils/base-node.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/base-node.js +7 -1
- package/lib/client/workflow/schema-utils/base-node.js.map +1 -1
- package/lib/client/workflow/schema-utils/normalize.d.ts +9 -5
- package/lib/client/workflow/schema-utils/normalize.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/number.d.ts +8 -1
- package/lib/client/workflow/schema-utils/number.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/string.d.ts +8 -1
- package/lib/client/workflow/schema-utils/string.d.ts.map +1 -1
- package/lib/client/workflow/schema-utils/struct.d.ts +10 -3
- package/lib/client/workflow/schema-utils/struct.d.ts.map +1 -1
- package/lib/commands/build/build-javascript.js +1 -1
- package/lib/commands/build/validate-typescript.js +1 -1
- package/lib/commands/build.js +5 -5
- package/lib/commands/dev/boot.js +5 -5
- package/lib/commands/dev/bundle-javascript.js +1 -1
- package/lib/commands/dev/graphql-code-gen.js +3 -3
- package/lib/commands/dev/onboarding.js +3 -3
- package/lib/commands/dev/prepare-build-contexts.js +4 -4
- package/lib/commands/dev/upload.js +2 -2
- package/lib/commands/dev.js +11 -11
- package/lib/commands/init/create-project.js +4 -4
- package/lib/commands/init.js +6 -6
- package/lib/commands/login.js +1 -1
- package/lib/commands/logout.js +1 -1
- package/lib/commands/version/create/bundle-javascript.js +1 -1
- package/lib/commands/version/create.js +11 -11
- package/lib/commands/version/list.js +6 -6
- package/lib/commands/whoami.js +2 -2
- package/lib/server/experimental/index.d.ts +1 -1
- package/lib/server/experimental/index.d.ts.map +1 -1
- package/lib/server/index.js +6 -19
- package/lib/server/index.js.map +1 -1
- package/lib/shared/index.js +2 -15
- package/lib/shared/index.js.map +1 -1
- package/lib/spinners/determine-workspace.spinner.js +2 -2
- package/lib/spinners/get-app-slug-from-package-json.js +1 -1
- package/lib/spinners/get-versions.spinner.js +1 -1
- package/lib/template/package.json +0 -1
- package/lib/tsconfig.lib.tsbuildinfo +1 -0
- package/lib/util/copy-with-replace.js +1 -1
- package/lib/util/create-directory.js +1 -1
- package/lib/util/load-attio-cli-version.js +2 -2
- package/lib/util/spinner.js +1 -1
- package/lib/util/upload-bundle.js +1 -1
- package/lib/utils/index.js +2 -15
- package/lib/utils/index.js.map +1 -1
- package/package.json +2 -3
- package/lib/tsconfig.tsbuildinfo +0 -1
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { BaseNode } from "./base-node";
|
|
2
|
-
export interface Array<TElement = unknown
|
|
2
|
+
export interface Array<TElement = unknown, TOptions extends {
|
|
3
|
+
is_optional: boolean;
|
|
4
|
+
} = {
|
|
5
|
+
is_optional: boolean;
|
|
6
|
+
}> extends BaseNode<"array"> {
|
|
3
7
|
type: "array";
|
|
4
8
|
element: TElement;
|
|
9
|
+
optional(): Array<TElement, Omit<TOptions, "is_optional"> & {
|
|
10
|
+
is_optional: true;
|
|
11
|
+
}>;
|
|
5
12
|
}
|
|
6
13
|
//# sourceMappingURL=array.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,KAAK,CAClB,QAAQ,GAAG,OAAO,EAClB,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CAClE,SAAQ,QAAQ,CAAC,OAAO,CAAC;IACvB,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,QAAQ,CAAA;IACjB,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG;QAAC,WAAW,EAAE,IAAI,CAAA;KAAC,CAAC,CAAA;CACnF"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { BaseNode } from "./base-node";
|
|
2
|
-
export interface AttioEntityReference extends
|
|
2
|
+
export interface AttioEntityReference<TOptions extends {
|
|
3
|
+
is_optional: boolean;
|
|
4
|
+
} = {
|
|
5
|
+
is_optional: boolean;
|
|
6
|
+
}> extends BaseNode<"attio-entity-reference", TOptions> {
|
|
3
7
|
type: "attio-entity-reference";
|
|
8
|
+
optional(): AttioEntityReference<Omit<TOptions, "is_optional"> & {
|
|
9
|
+
is_optional: true;
|
|
10
|
+
}>;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=attio-entity-reference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-entity-reference.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/attio-entity-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"attio-entity-reference.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/attio-entity-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,oBAAoB,CACjC,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CAClE,SAAQ,QAAQ,CAAC,wBAAwB,EAAE,QAAQ,CAAC;IAClD,IAAI,EAAE,wBAAwB,CAAA;IAC9B,QAAQ,IAAI,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG;QAAC,WAAW,EAAE,IAAI,CAAA;KAAC,CAAC,CAAA;CACxF"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { BaseNode } from "./base-node";
|
|
2
|
-
export interface AttioSelect extends
|
|
2
|
+
export interface AttioSelect<TOptions extends {
|
|
3
|
+
is_optional: boolean;
|
|
4
|
+
} = {
|
|
5
|
+
is_optional: boolean;
|
|
6
|
+
}> extends BaseNode<"attio-select", TOptions> {
|
|
3
7
|
type: "attio-select";
|
|
8
|
+
optional(): AttioSelect<Omit<TOptions, "is_optional"> & {
|
|
9
|
+
is_optional: true;
|
|
10
|
+
}>;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=attio-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-select.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/attio-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"attio-select.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/attio-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,WAAW,CAAC,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CACzF,SAAQ,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC;IAC1C,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG;QAAC,WAAW,EAAE,IAAI,CAAA;KAAC,CAAC,CAAA;CAC/E"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export declare abstract class BaseNode<TType extends string = string> {
|
|
1
|
+
export declare abstract class BaseNode<TType extends string = string, TOptions extends Record<string, any> = {}> {
|
|
2
2
|
abstract get type(): TType;
|
|
3
|
+
options: TOptions;
|
|
4
|
+
constructor(options: TOptions);
|
|
3
5
|
toJSON(): {
|
|
4
6
|
type: TType;
|
|
7
|
+
options: TOptions;
|
|
5
8
|
};
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=base-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/base-node.ts"],"names":[],"mappings":"AAGA,8BAAsB,QAAQ,
|
|
1
|
+
{"version":3,"file":"base-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/base-node.ts"],"names":[],"mappings":"AAGA,8BAAsB,QAAQ,CAC1B,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE;IAEzC,aAAoB,IAAI,IAAI,KAAK,CAAA;IAE1B,OAAO,EAAE,QAAQ,CAAA;gBAEL,OAAO,EAAE,QAAQ;IAI7B,MAAM;;;;CAMhB"}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseNode = void 0;
|
|
4
4
|
class BaseNode {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
5
8
|
toJSON() {
|
|
6
|
-
return {
|
|
9
|
+
return {
|
|
10
|
+
type: this.type,
|
|
11
|
+
options: this.options,
|
|
12
|
+
};
|
|
7
13
|
}
|
|
8
14
|
}
|
|
9
15
|
exports.BaseNode = BaseNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-node.js","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/base-node.ts"],"names":[],"mappings":";;;AAGA,MAAsB,QAAQ;
|
|
1
|
+
{"version":3,"file":"base-node.js","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/base-node.ts"],"names":[],"mappings":";;;AAGA,MAAsB,QAAQ;IAQ1B,YAAmB,OAAiB;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IAC1B,CAAC;IAEM,MAAM;QACT,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;SACxB,CAAA;IACL,CAAC;CACJ;AAlBD,4BAkBC"}
|
|
@@ -2,9 +2,13 @@ import type { Array } from "./array";
|
|
|
2
2
|
import type { BaseNode } from "./base-node";
|
|
3
3
|
import type { Friendly } from "./friendly";
|
|
4
4
|
import type { Struct } from "./struct";
|
|
5
|
-
|
|
6
|
-
[
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
type NormalizedObject<TObject> = {
|
|
6
|
+
[K in keyof TObject]: TObject[K] extends Friendly<BaseNode> ? Normalized<TObject[K]> : never;
|
|
7
|
+
};
|
|
8
|
+
export type Normalized<TFriendlyNode extends Friendly<any>> = TFriendlyNode extends Struct<infer TObject extends {
|
|
9
|
+
[key: string]: Friendly<BaseNode>;
|
|
10
|
+
}, infer TOptions> ? Struct<NormalizedObject<TObject>, TOptions> : TFriendlyNode extends Array<infer TElement extends Friendly<BaseNode>, infer TOptions> ? Array<Normalized<TElement>, TOptions> : TFriendlyNode extends Exclude<BaseNode, Struct<any> | Array<any>> ? TFriendlyNode : Struct<NormalizedObject<TFriendlyNode>, {
|
|
11
|
+
is_optional: false;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
10
14
|
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAEpC,KAAK,gBAAgB,CAAC,OAAO,IAAI;KAC5B,CAAC,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAC/F,CAAA;AAKD,MAAM,MAAM,UAAU,CAAC,aAAa,SAAS,QAAQ,CAAC,GAAG,CAAC,IAAI,aAAa,SAAS,MAAM,CACtF,MAAM,OAAO,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;CAAC,EACzD,MAAM,QAAQ,CACjB,GACK,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAC3C,aAAa,SAAS,KAAK,CAAC,MAAM,QAAQ,SAAS,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,GACpF,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,GACrC,aAAa,SAAS,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAC/D,aAAa,GACb,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { BaseNode } from "./base-node";
|
|
2
|
-
export interface Number extends
|
|
2
|
+
export interface Number<TOptions extends {
|
|
3
|
+
is_optional: boolean;
|
|
4
|
+
} = {
|
|
5
|
+
is_optional: boolean;
|
|
6
|
+
}> extends BaseNode<"number", TOptions> {
|
|
3
7
|
type: "number";
|
|
8
|
+
optional(): Number<Omit<TOptions, "is_optional"> & {
|
|
9
|
+
is_optional: true;
|
|
10
|
+
}>;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,MAAM,CAAC,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CACpF,SAAQ,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpC,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG;QAAC,WAAW,EAAE,IAAI,CAAA;KAAC,CAAC,CAAA;CAC1E"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { BaseNode } from "./base-node";
|
|
2
|
-
export interface String extends
|
|
2
|
+
export interface String<TOptions extends {
|
|
3
|
+
is_optional: boolean;
|
|
4
|
+
} = {
|
|
5
|
+
is_optional: boolean;
|
|
6
|
+
}> extends BaseNode<"string", TOptions> {
|
|
3
7
|
type: "string";
|
|
8
|
+
optional(): String<Omit<TOptions, "is_optional"> & {
|
|
9
|
+
is_optional: true;
|
|
10
|
+
}>;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,MAAM,CAAC,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CACpF,SAAQ,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpC,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG;QAAC,WAAW,EAAE,IAAI,CAAA;KAAC,CAAC,CAAA;CAC1E"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import type { BaseNode } from "./base-node";
|
|
2
|
-
export interface Struct<
|
|
2
|
+
export interface Struct<TFields extends {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
} = {
|
|
5
5
|
[key: string]: unknown;
|
|
6
|
-
}
|
|
6
|
+
}, TOptions extends {
|
|
7
|
+
is_optional: boolean;
|
|
8
|
+
} = {
|
|
9
|
+
is_optional: boolean;
|
|
10
|
+
}> extends BaseNode<"struct", TOptions> {
|
|
7
11
|
type: "struct";
|
|
8
|
-
|
|
12
|
+
fields: TFields;
|
|
13
|
+
optional(): Struct<TFields, Omit<TOptions, "is_optional"> & {
|
|
14
|
+
is_optional: true;
|
|
15
|
+
}>;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=struct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/struct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/schema-utils/struct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,MAAM,CACnB,OAAO,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,EACnE,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CAClE,SAAQ,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAClC,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG;QAAC,WAAW,EAAE,IAAI,CAAA;KAAC,CAAC,CAAA;CACnF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { combineAsync, complete, isErrored } from "@attio/fetchable";
|
|
1
|
+
import { combineAsync, complete, isErrored } from "@attio/fetchable-npm";
|
|
2
2
|
import { prepareBuildContexts } from "../dev/prepare-build-contexts.js";
|
|
3
3
|
export async function buildJavaScript() {
|
|
4
4
|
const buildContextsResult = await prepareBuildContexts("write-to-disk");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
+
import { complete, errored } from "@attio/fetchable-npm";
|
|
2
3
|
import { getDiagnostics, readConfig, typeScriptErrorSchema } from "../../util/typescript.js";
|
|
3
|
-
import { complete, errored } from "@attio/fetchable";
|
|
4
4
|
export async function validateTypeScript() {
|
|
5
5
|
try {
|
|
6
6
|
const program = await readConfig(path.resolve("tsconfig.json"));
|
package/lib/commands/build.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
3
|
+
import { hardExit } from "../util/hard-exit.js";
|
|
4
4
|
import { spinnerify } from "../util/spinner.js";
|
|
5
|
-
import { isErrored } from "@attio/fetchable";
|
|
6
5
|
import { printJsError, printTsError } from "../util/typescript.js";
|
|
7
|
-
import {
|
|
6
|
+
import { buildJavaScript } from "./build/build-javascript.js";
|
|
7
|
+
import { validateTypeScript } from "./build/validate-typescript.js";
|
|
8
8
|
import { graphqlCodeGen } from "./dev/graphql-code-gen.js";
|
|
9
|
-
import {
|
|
9
|
+
import { printBuildContextError } from "./dev/prepare-build-contexts.js";
|
|
10
10
|
export const build = new Command("build")
|
|
11
11
|
.description("Build your Attio extension locally")
|
|
12
12
|
.action(async () => {
|
package/lib/commands/dev/boot.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isErrored } from "@attio/fetchable";
|
|
2
|
-
import { printFetcherError, printCliVersionError, printPackageJsonError, printDetermineWorkspaceError, } from "../../print-errors.js";
|
|
3
|
-
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
4
|
-
import { determineWorkspace } from "../../spinners/determine-workspace.spinner.js";
|
|
5
|
-
import { loadAttioCliVersion } from "../../util/load-attio-cli-version.js";
|
|
1
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
6
2
|
import { api } from "../../api/api.js";
|
|
3
|
+
import { printCliVersionError, printDetermineWorkspaceError, printFetcherError, printPackageJsonError, } from "../../print-errors.js";
|
|
4
|
+
import { determineWorkspace } from "../../spinners/determine-workspace.spinner.js";
|
|
7
5
|
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
6
|
+
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
7
|
+
import { loadAttioCliVersion } from "../../util/load-attio-cli-version.js";
|
|
8
8
|
import { loadEnv } from "../../util/load-env.js";
|
|
9
9
|
export async function boot({ workspaceSlug }) {
|
|
10
10
|
const appSlugResult = await getAppSlugFromPackageJson();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import chokidar from "chokidar";
|
|
2
|
-
import { combineAsync, complete, isErrored } from "@attio/fetchable";
|
|
2
|
+
import { combineAsync, complete, isErrored } from "@attio/fetchable-npm";
|
|
3
3
|
import { prepareBuildContexts } from "./prepare-build-contexts.js";
|
|
4
4
|
export function bundleJavaScript(onSuccess, onError) {
|
|
5
5
|
const watcher = chokidar.watch(["./src/**/*.{js,jsx,ts,tsx}"], {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import chokidar from "chokidar";
|
|
2
1
|
import { readFileSync } from "fs";
|
|
2
|
+
import chokidar from "chokidar";
|
|
3
3
|
import { parse } from "graphql";
|
|
4
|
-
import { complete, errored, isErrored } from "@attio/fetchable";
|
|
5
|
-
import { findNodeModulesPath } from "../../util/find-node-modules-path.js";
|
|
4
|
+
import { complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
6
5
|
import { generateOperations } from "../../graphql/generate-operations.js";
|
|
7
6
|
import { GraphQLError } from "../../graphql/graphql-error.js";
|
|
7
|
+
import { findNodeModulesPath } from "../../util/find-node-modules-path.js";
|
|
8
8
|
import { hardExit } from "../../util/hard-exit.js";
|
|
9
9
|
export async function graphqlCodeGen() {
|
|
10
10
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { listenForKey } from "../../util/listen-for-key.js";
|
|
2
1
|
import open from "open";
|
|
3
|
-
import {
|
|
2
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
4
3
|
import { api } from "../../api/api.js";
|
|
5
|
-
import {
|
|
4
|
+
import { APP } from "../../env.js";
|
|
5
|
+
import { listenForKey } from "../../util/listen-for-key.js";
|
|
6
6
|
function prompt() {
|
|
7
7
|
process.stdout.write(`🚨 IMPORTANT: You will need to install your app in your workspace. Press "i" to open the app settings page, and then click "Install".\n\n`);
|
|
8
8
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as esbuild from "esbuild";
|
|
2
|
-
import tmp from "tmp-promise";
|
|
3
1
|
import fs from "fs/promises";
|
|
4
2
|
import path from "path";
|
|
3
|
+
import chalk from "chalk";
|
|
4
|
+
import * as esbuild from "esbuild";
|
|
5
|
+
import tmp from "tmp-promise";
|
|
6
|
+
import { combineAsync, complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
5
7
|
import { createClientBuildConfig } from "../../build/client/create-client-build-config.js";
|
|
6
8
|
import { generateClientEntry } from "../../build/client/generate-client-entry.js";
|
|
7
9
|
import { createServerBuildConfig } from "../../build/server/create-server-build-config.js";
|
|
8
10
|
import { generateServerEntry } from "../../build/server/generate-server-entry.js";
|
|
9
|
-
import { errored, isErrored, complete, combineAsync } from "@attio/fetchable";
|
|
10
|
-
import chalk from "chalk";
|
|
11
11
|
import { errorsAndWarningsSchema } from "../../build.js";
|
|
12
12
|
export async function prepareBuildContexts(mode) {
|
|
13
13
|
const srcDir = "src";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import notifier from "node-notifier";
|
|
2
|
+
import { combineAsync, complete, isErrored } from "@attio/fetchable-npm";
|
|
3
|
+
import { api } from "../../api/api.js";
|
|
2
4
|
import { spinnerify } from "../../util/spinner.js";
|
|
3
5
|
import { uploadBundle } from "../../util/upload-bundle.js";
|
|
4
|
-
import { api } from "../../api/api.js";
|
|
5
|
-
import { isErrored, complete, combineAsync } from "@attio/fetchable";
|
|
6
6
|
export async function upload({ contents, devVersionId, appId, }) {
|
|
7
7
|
return await spinnerify("Uploading...", () => `Upload complete at ${new Date().toLocaleTimeString()}`, async () => {
|
|
8
8
|
const startUploadResult = await api.startUpload({
|
package/lib/commands/dev.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import chalk from "chalk";
|
|
1
2
|
import { Command, Option } from "commander";
|
|
3
|
+
import notifier from "node-notifier";
|
|
2
4
|
import { z } from "zod";
|
|
3
|
-
import
|
|
5
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
6
|
+
import { authenticator } from "../auth/auth.js";
|
|
7
|
+
import { printUploadError } from "../print-errors.js";
|
|
4
8
|
import { printMessage } from "../util/print-message.js";
|
|
5
|
-
import {
|
|
6
|
-
import { watchGraphqlCodegen } from "./dev/graphql-code-gen.js";
|
|
7
|
-
import { bundleJavaScript } from "./dev/bundle-javascript.js";
|
|
9
|
+
import { printJsError, printTsError } from "../util/typescript.js";
|
|
8
10
|
import { boot } from "./dev/boot.js";
|
|
9
|
-
import {
|
|
11
|
+
import { bundleJavaScript } from "./dev/bundle-javascript.js";
|
|
12
|
+
import { watchGraphqlCodegen } from "./dev/graphql-code-gen.js";
|
|
10
13
|
import { graphqlServer } from "./dev/graphql-server.js";
|
|
11
|
-
import {
|
|
12
|
-
import { upload } from "./dev/upload.js";
|
|
13
|
-
import { isErrored } from "@attio/fetchable";
|
|
14
|
-
import { printJsError, printTsError } from "../util/typescript.js";
|
|
14
|
+
import { onboarding } from "./dev/onboarding.js";
|
|
15
15
|
import { printBuildContextError } from "./dev/prepare-build-contexts.js";
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
16
|
+
import { upload } from "./dev/upload.js";
|
|
17
|
+
import { validateTypeScript } from "./dev/validate-typescript.js";
|
|
18
18
|
const notifyTsErrors = (errors) => {
|
|
19
19
|
notifier.notify({
|
|
20
20
|
title: `TypeScript Error${errors.length === 1 ? "" : "s"}`,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { fileURLToPath } from "url";
|
|
2
|
-
import path from "path";
|
|
3
1
|
import { existsSync } from "fs";
|
|
4
|
-
import
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
import { complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
5
5
|
import { canWrite } from "../../util/can-write.js";
|
|
6
6
|
import { copyWithTransform } from "../../util/copy-with-replace.js";
|
|
7
|
+
import { createDirectory } from "../../util/create-directory.js";
|
|
7
8
|
import { spinnerify } from "../../util/spinner.js";
|
|
8
|
-
import { complete, errored, isErrored } from "@attio/fetchable";
|
|
9
9
|
export async function createProject({ appSlug, appInfo, }) {
|
|
10
10
|
return await spinnerify("Creating project...", "Project created", async () => {
|
|
11
11
|
const cwd = process.cwd();
|
package/lib/commands/init.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import boxen from "boxen";
|
|
2
|
+
import chalk from "chalk";
|
|
1
3
|
import { Argument, Command } from "commander";
|
|
2
4
|
import { z } from "zod";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
6
|
+
import { authenticator } from "../auth/auth.js";
|
|
5
7
|
import { printCreateProjectError, printFetcherError } from "../print-errors.js";
|
|
6
|
-
import { printLogo } from "../util/print-logo.js";
|
|
7
8
|
import { getAppInfo } from "../spinners/get-app-info.spinner.js";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { authenticator } from "../auth/auth.js";
|
|
9
|
+
import { printLogo } from "../util/print-logo.js";
|
|
10
|
+
import { createProject } from "./init/create-project.js";
|
|
11
11
|
export const argsSchema = z.string();
|
|
12
12
|
export const init = new Command("init")
|
|
13
13
|
.description("Initialize a new Attio app")
|
package/lib/commands/login.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
2
3
|
import { authenticator } from "../auth/auth.js";
|
|
3
|
-
import { isErrored } from "@attio/fetchable";
|
|
4
4
|
import { printAuthenticationError } from "../print-errors.js";
|
|
5
5
|
export const login = new Command("login")
|
|
6
6
|
.description("Authenticate with Attio")
|
package/lib/commands/logout.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
2
3
|
import { getKeychain } from "../auth/keychain.js";
|
|
3
4
|
import { printKeychainError } from "../print-errors.js";
|
|
4
|
-
import { isErrored } from "@attio/fetchable";
|
|
5
5
|
export const logout = new Command("logout").description("Log out from Attio").action(async () => {
|
|
6
6
|
const result = await getKeychain().delete();
|
|
7
7
|
if (isErrored(result)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { combineAsync, complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
2
2
|
import { prepareBuildContexts } from "../../dev/prepare-build-contexts.js";
|
|
3
3
|
export async function bundleJavaScript() {
|
|
4
4
|
const buildContextsResult = await prepareBuildContexts("in-memory");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
1
|
import chalk from "chalk";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { combineAsync, isErrored } from "@attio/fetchable-npm";
|
|
4
|
+
import { api } from "../../api/api.js";
|
|
5
|
+
import { authenticator } from "../../auth/auth.js";
|
|
8
6
|
import { printCliVersionError, printFetcherError, printPackageJsonError } from "../../print-errors.js";
|
|
9
|
-
import {
|
|
7
|
+
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
10
8
|
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { getVersions } from "../../spinners/get-versions.spinner.js";
|
|
10
|
+
import { loadAttioCliVersion } from "../../util/load-attio-cli-version.js";
|
|
11
|
+
import { spinnerify } from "../../util/spinner.js";
|
|
14
12
|
import { printJsError } from "../../util/typescript.js";
|
|
15
|
-
import {
|
|
13
|
+
import { uploadBundle } from "../../util/upload-bundle.js";
|
|
14
|
+
import { printBuildContextError } from "../dev/prepare-build-contexts.js";
|
|
15
|
+
import { bundleJavaScript } from "./create/bundle-javascript.js";
|
|
16
16
|
export const versionCreate = new Command("create")
|
|
17
17
|
.description("Create a new unpublished version of your Attio app")
|
|
18
18
|
.action(async () => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
3
|
-
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
4
|
-
import { getVersions } from "../../spinners/get-versions.spinner.js";
|
|
5
1
|
import chalk from "chalk";
|
|
6
2
|
import Table from "cli-table3";
|
|
3
|
+
import { Command } from "commander";
|
|
7
4
|
import { format as formatDate } from "date-fns";
|
|
8
|
-
import { isErrored } from "@attio/fetchable";
|
|
9
|
-
import { printFetcherError, printPackageJsonError } from "../../print-errors.js";
|
|
5
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
10
6
|
import { authenticator } from "../../auth/auth.js";
|
|
7
|
+
import { printFetcherError, printPackageJsonError } from "../../print-errors.js";
|
|
8
|
+
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
9
|
+
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
10
|
+
import { getVersions } from "../../spinners/get-versions.spinner.js";
|
|
11
11
|
export const versionList = new Command()
|
|
12
12
|
.name("list")
|
|
13
13
|
.description("List all versions of your app")
|
package/lib/commands/whoami.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
import {
|
|
2
|
+
import { isErrored } from "@attio/fetchable-npm";
|
|
3
3
|
import { api } from "../api/api.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getKeychain } from "../auth/keychain.js";
|
|
5
5
|
import { printFetcherError } from "../print-errors.js";
|
|
6
6
|
export const whoami = new Command()
|
|
7
7
|
.name("whoami")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { KVSerializable as experimenta_KVSerializable, KVStore as experimenta_KVStore, kv as experimental_kv, } from "./kv-store";
|
|
1
|
+
export { type KVSerializable as experimenta_KVSerializable, type KVStore as experimenta_KVStore, kv as experimental_kv, } from "./kv-store";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/experimental/index.ts"],"names":[],"mappings":"AACA,OAAO,EACH,cAAc,IAAI,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/experimental/index.ts"],"names":[],"mappings":"AACA,OAAO,EACH,KAAK,cAAc,IAAI,0BAA0B,EACjD,KAAK,OAAO,IAAI,mBAAmB,EACnC,EAAE,IAAI,eAAe,GACxB,MAAM,YAAY,CAAA"}
|
package/lib/server/index.js
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./attio-fetch"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./connections"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./env"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./experimental"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./webhook-handlers"), exports);
|
|
22
9
|
//# sourceMappingURL=index.js.map
|
package/lib/server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B;AAC7B,wDAA6B;AAC7B,gDAAqB;AACrB,yDAA8B;AAC9B,6DAAkC"}
|
package/lib/shared/index.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./errors.js"), exports);
|
|
18
5
|
//# sourceMappingURL=index.js.map
|
package/lib/shared/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { select } from "@inquirer/prompts";
|
|
2
|
-
import {
|
|
2
|
+
import { complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
3
3
|
import { api } from "../api/api.js";
|
|
4
|
-
import {
|
|
4
|
+
import { spinnerify } from "../util/spinner.js";
|
|
5
5
|
export async function determineWorkspace(workspaceSlug) {
|
|
6
6
|
const workspacesResult = await spinnerify("Loading workspaces...", "Workspaces loaded", async () => await api.fetchWorkspaces());
|
|
7
7
|
if (isErrored(workspacesResult)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from "fs";
|
|
2
2
|
import { join } from "path";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { complete, errored } from "@attio/fetchable";
|
|
4
|
+
import { complete, errored } from "@attio/fetchable-npm";
|
|
5
5
|
const packageJsonSchema = z.object({
|
|
6
6
|
name: z.string({
|
|
7
7
|
required_error: "No name field found in package.json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { spinnerify } from "../util/spinner.js";
|
|
2
1
|
import { api } from "../api/api.js";
|
|
2
|
+
import { spinnerify } from "../util/spinner.js";
|
|
3
3
|
export async function getVersions(appInfo) {
|
|
4
4
|
return await spinnerify("Loading versions...", "Versions loaded", async () => await api.fetchVersions(appInfo.app_id));
|
|
5
5
|
}
|