@constructive-sdk/cli 1.9.2 → 1.9.4
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/{api/cli/commands/platform-api-module.d.ts → admin/cli/commands/org-chart-edge-grant.d.ts} +1 -1
- package/{api/cli/commands/platform-api-module.js → admin/cli/commands/org-chart-edge-grant.js} +137 -53
- package/{esm/api/cli/commands/platform-api-module.d.ts → admin/cli/commands/org-chart-edge.d.ts} +1 -1
- package/{api/cli/commands/api-module.js → admin/cli/commands/org-chart-edge.js} +86 -60
- package/admin/cli/commands/org-get-managers-record.d.ts +8 -0
- package/admin/cli/commands/org-get-managers-record.js +126 -0
- package/admin/cli/commands/org-get-subordinates-record.d.ts +8 -0
- package/admin/cli/commands/org-get-subordinates-record.js +126 -0
- package/admin/cli/commands/org-is-manager-of.d.ts +8 -0
- package/admin/cli/commands/org-is-manager-of.js +45 -0
- package/admin/cli/commands.js +11 -1
- package/admin/cli/executor.d.ts +9 -0
- package/admin/orm/index.d.ts +13 -0
- package/admin/orm/index.js +8 -0
- package/admin/orm/input-types.d.ts +399 -0
- package/admin/orm/models/index.d.ts +4 -0
- package/admin/orm/models/index.js +9 -1
- package/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/admin/orm/models/orgChartEdge.js +104 -0
- package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
- package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/admin/orm/models/orgGetManagersRecord.js +59 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/api/cli/commands/{api-module.d.ts → domain-type.d.ts} +1 -1
- package/api/cli/commands/domain-type.js +466 -0
- package/api/cli/commands/table.js +22 -0
- package/api/cli/commands.js +3 -5
- package/api/cli/executor.d.ts +1 -2
- package/api/orm/index.d.ts +2 -4
- package/api/orm/index.js +2 -4
- package/api/orm/input-types.d.ts +378 -468
- package/api/orm/input-types.js +2 -2
- package/api/orm/models/domainType.d.ts +54 -0
- package/api/orm/models/{apiModule.js → domainType.js} +27 -27
- package/api/orm/models/index.d.ts +1 -2
- package/api/orm/models/index.js +4 -6
- package/compute/cli/commands/function-api-binding.js +12 -0
- package/compute/cli/commands/platform-function-api-binding.js +12 -0
- package/compute/cli/commands/platform-function-invocation.js +22 -0
- package/compute/orm/input-types.d.ts +42 -3
- package/esm/admin/cli/commands/org-chart-edge-grant.d.ts +8 -0
- package/esm/{api/cli/commands/platform-api-module.js → admin/cli/commands/org-chart-edge-grant.js} +137 -53
- package/esm/admin/cli/commands/org-chart-edge.d.ts +8 -0
- package/esm/{api/cli/commands/api-module.js → admin/cli/commands/org-chart-edge.js} +86 -60
- package/esm/admin/cli/commands/org-get-managers-record.d.ts +8 -0
- package/esm/admin/cli/commands/org-get-managers-record.js +124 -0
- package/esm/admin/cli/commands/org-get-subordinates-record.d.ts +8 -0
- package/esm/admin/cli/commands/org-get-subordinates-record.js +124 -0
- package/esm/admin/cli/commands/org-is-manager-of.d.ts +8 -0
- package/esm/admin/cli/commands/org-is-manager-of.js +43 -0
- package/esm/admin/cli/commands.js +11 -1
- package/esm/admin/cli/executor.d.ts +9 -0
- package/esm/admin/orm/index.d.ts +13 -0
- package/esm/admin/orm/index.js +8 -0
- package/esm/admin/orm/input-types.d.ts +399 -0
- package/esm/admin/orm/models/index.d.ts +4 -0
- package/esm/admin/orm/models/index.js +4 -0
- package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/esm/admin/orm/models/orgChartEdge.js +100 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/api/cli/commands/{api-module.d.ts → domain-type.d.ts} +1 -1
- package/esm/api/cli/commands/domain-type.js +464 -0
- package/esm/api/cli/commands/table.js +22 -0
- package/esm/api/cli/commands.js +3 -5
- package/esm/api/cli/executor.d.ts +1 -2
- package/esm/api/orm/index.d.ts +2 -4
- package/esm/api/orm/index.js +2 -4
- package/esm/api/orm/input-types.d.ts +378 -468
- package/esm/api/orm/input-types.js +2 -2
- package/esm/api/orm/models/domainType.d.ts +54 -0
- package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
- package/esm/api/orm/models/index.d.ts +1 -2
- package/esm/api/orm/models/index.js +1 -2
- package/esm/compute/cli/commands/function-api-binding.js +12 -0
- package/esm/compute/cli/commands/platform-function-api-binding.js +12 -0
- package/esm/compute/cli/commands/platform-function-invocation.js +22 -0
- package/esm/compute/orm/input-types.d.ts +42 -3
- package/esm/modules/cli/commands/api-surface-module.js +0 -44
- package/esm/modules/cli/commands/billing-module.js +22 -0
- package/esm/modules/orm/input-types.d.ts +9 -16
- package/modules/cli/commands/api-surface-module.js +0 -44
- package/modules/cli/commands/billing-module.js +22 -0
- package/modules/orm/input-types.d.ts +9 -16
- package/package.json +5 -5
- package/api/orm/models/apiModule.d.ts +0 -54
- package/api/orm/models/platformApiModule.d.ts +0 -54
- package/esm/api/orm/models/apiModule.d.ts +0 -54
- package/esm/api/orm/models/platformApiModule.d.ts +0 -54
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// ============ Connection Fields Map ============
|
|
2
2
|
export const connectionFieldsMap = {
|
|
3
3
|
Api: {
|
|
4
|
-
apiModules: 'ApiModule',
|
|
5
4
|
apiSchemas: 'ApiSchema',
|
|
6
5
|
corsSettings: 'CorsSetting',
|
|
7
6
|
},
|
|
@@ -10,6 +9,7 @@ export const connectionFieldsMap = {
|
|
|
10
9
|
compositeTypes: 'CompositeType',
|
|
11
10
|
databaseTransfers: 'DatabaseTransfer',
|
|
12
11
|
defaultPrivileges: 'DefaultPrivilege',
|
|
12
|
+
domainTypes: 'DomainType',
|
|
13
13
|
embeddingChunks: 'EmbeddingChunk',
|
|
14
14
|
enums: 'Enum',
|
|
15
15
|
exclusionConstraints: 'ExclusionConstraint',
|
|
@@ -49,7 +49,6 @@ export const connectionFieldsMap = {
|
|
|
49
49
|
domainVerifications: 'DomainVerification',
|
|
50
50
|
},
|
|
51
51
|
PlatformApi: {
|
|
52
|
-
platformApiModulesByApiId: 'PlatformApiModule',
|
|
53
52
|
platformApiSchemasByApiId: 'PlatformApiSchema',
|
|
54
53
|
},
|
|
55
54
|
PlatformDomain: {
|
|
@@ -69,6 +68,7 @@ export const connectionFieldsMap = {
|
|
|
69
68
|
apiSchemas: 'ApiSchema',
|
|
70
69
|
compositeTypes: 'CompositeType',
|
|
71
70
|
defaultPrivileges: 'DefaultPrivilege',
|
|
71
|
+
domainTypes: 'DomainType',
|
|
72
72
|
enums: 'Enum',
|
|
73
73
|
functions: 'Function',
|
|
74
74
|
platformApiSchemas: 'PlatformApiSchema',
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DomainType model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { DomainTypeWithRelations, DomainTypeSelect, DomainTypeFilter, DomainTypeOrderBy, CreateDomainTypeInput, DomainTypePatch } from '../input-types';
|
|
10
|
+
export declare class DomainTypeModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends DomainTypeSelect>(args: FindManyArgs<S, DomainTypeFilter, DomainTypeOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
16
|
+
domainTypes: ConnectionResult<InferSelectResult<DomainTypeWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends DomainTypeSelect>(args: FindFirstArgs<S, DomainTypeFilter, DomainTypeOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
21
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends DomainTypeSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
27
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends DomainTypeSelect>(args: CreateArgs<S, CreateDomainTypeInput['domainType']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
32
|
+
createDomainType: {
|
|
33
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends DomainTypeSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, DomainTypePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
41
|
+
updateDomainType: {
|
|
42
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends DomainTypeSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
50
|
+
deleteDomainType: {
|
|
51
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
|
-
export class
|
|
3
|
+
export class DomainTypeModel {
|
|
4
4
|
client;
|
|
5
5
|
constructor(client) {
|
|
6
6
|
this.client = client;
|
|
7
7
|
}
|
|
8
8
|
findMany(args) {
|
|
9
|
-
const { document, variables } = buildFindManyDocument('
|
|
9
|
+
const { document, variables } = buildFindManyDocument('DomainType', 'domainTypes', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,85 +14,85 @@ export class ApiModuleModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'DomainTypeFilter', 'DomainTypeOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'DomainType',
|
|
22
|
+
fieldName: 'domainTypes',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('DomainType', 'domainTypes', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
30
|
orderBy: args?.orderBy,
|
|
31
|
-
}, '
|
|
31
|
+
}, 'DomainTypeFilter', 'DomainTypeOrderBy', connectionFieldsMap);
|
|
32
32
|
return new QueryBuilder({
|
|
33
33
|
client: this.client,
|
|
34
34
|
operation: 'query',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
35
|
+
operationName: 'DomainType',
|
|
36
|
+
fieldName: 'domainType',
|
|
37
37
|
document,
|
|
38
38
|
variables,
|
|
39
39
|
transform: (data) => ({
|
|
40
|
-
|
|
40
|
+
domainType: data.domainTypes?.nodes?.[0] ?? null,
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
findOne(args) {
|
|
45
|
-
const { document, variables } = buildFindManyDocument('
|
|
45
|
+
const { document, variables } = buildFindManyDocument('DomainType', 'domainTypes', args.select, {
|
|
46
46
|
where: {
|
|
47
47
|
id: {
|
|
48
48
|
equalTo: args.id,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
first: 1,
|
|
52
|
-
}, '
|
|
52
|
+
}, 'DomainTypeFilter', 'DomainTypeOrderBy', connectionFieldsMap);
|
|
53
53
|
return new QueryBuilder({
|
|
54
54
|
client: this.client,
|
|
55
55
|
operation: 'query',
|
|
56
|
-
operationName: '
|
|
57
|
-
fieldName: '
|
|
56
|
+
operationName: 'DomainType',
|
|
57
|
+
fieldName: 'domainType',
|
|
58
58
|
document,
|
|
59
59
|
variables,
|
|
60
60
|
transform: (data) => ({
|
|
61
|
-
|
|
61
|
+
domainType: data.domainTypes?.nodes?.[0] ?? null,
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
create(args) {
|
|
66
|
-
const { document, variables } = buildCreateDocument('
|
|
66
|
+
const { document, variables } = buildCreateDocument('DomainType', 'createDomainType', 'domainType', args.select, args.data, 'CreateDomainTypeInput', connectionFieldsMap);
|
|
67
67
|
return new QueryBuilder({
|
|
68
68
|
client: this.client,
|
|
69
69
|
operation: 'mutation',
|
|
70
|
-
operationName: '
|
|
71
|
-
fieldName: '
|
|
70
|
+
operationName: 'DomainType',
|
|
71
|
+
fieldName: 'createDomainType',
|
|
72
72
|
document,
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('DomainType', 'updateDomainType', 'domainType', args.select, args.where.id, args.data, 'UpdateDomainTypeInput', 'id', 'domainTypePatch', connectionFieldsMap, undefined);
|
|
78
78
|
return new QueryBuilder({
|
|
79
79
|
client: this.client,
|
|
80
80
|
operation: 'mutation',
|
|
81
|
-
operationName: '
|
|
82
|
-
fieldName: '
|
|
81
|
+
operationName: 'DomainType',
|
|
82
|
+
fieldName: 'updateDomainType',
|
|
83
83
|
document,
|
|
84
84
|
variables,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(args) {
|
|
88
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('DomainType', 'deleteDomainType', 'domainType', {
|
|
89
89
|
id: args.where.id,
|
|
90
|
-
}, '
|
|
90
|
+
}, 'DeleteDomainTypeInput', args.select, connectionFieldsMap);
|
|
91
91
|
return new QueryBuilder({
|
|
92
92
|
client: this.client,
|
|
93
93
|
operation: 'mutation',
|
|
94
|
-
operationName: '
|
|
95
|
-
fieldName: '
|
|
94
|
+
operationName: 'DomainType',
|
|
95
|
+
fieldName: 'deleteDomainType',
|
|
96
96
|
document,
|
|
97
97
|
variables,
|
|
98
98
|
});
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
export { ApiModel } from './api';
|
|
7
|
-
export { ApiModuleModel } from './apiModule';
|
|
8
7
|
export { ApiSchemaModel } from './apiSchema';
|
|
9
8
|
export { ApiSettingModel } from './apiSetting';
|
|
10
9
|
export { AstMigrationModel } from './astMigration';
|
|
@@ -17,6 +16,7 @@ export { DatabaseTransferModel } from './databaseTransfer';
|
|
|
17
16
|
export { DefaultPrivilegeModel } from './defaultPrivilege';
|
|
18
17
|
export { DomainModel } from './domain';
|
|
19
18
|
export { DomainEventModel } from './domainEvent';
|
|
19
|
+
export { DomainTypeModel } from './domainType';
|
|
20
20
|
export { DomainVerificationModel } from './domainVerification';
|
|
21
21
|
export { EmbeddingChunkModel } from './embeddingChunk';
|
|
22
22
|
export { EnumModel } from './enum';
|
|
@@ -32,7 +32,6 @@ export { ManagedDomainModel } from './managedDomain';
|
|
|
32
32
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
33
33
|
export { PartitionModel } from './partition';
|
|
34
34
|
export { PlatformApiModel } from './platformApi';
|
|
35
|
-
export { PlatformApiModuleModel } from './platformApiModule';
|
|
36
35
|
export { PlatformApiSchemaModel } from './platformApiSchema';
|
|
37
36
|
export { PlatformApiSettingModel } from './platformApiSetting';
|
|
38
37
|
export { PlatformCorsSettingModel } from './platformCorsSetting';
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
export { ApiModel } from './api';
|
|
7
|
-
export { ApiModuleModel } from './apiModule';
|
|
8
7
|
export { ApiSchemaModel } from './apiSchema';
|
|
9
8
|
export { ApiSettingModel } from './apiSetting';
|
|
10
9
|
export { AstMigrationModel } from './astMigration';
|
|
@@ -17,6 +16,7 @@ export { DatabaseTransferModel } from './databaseTransfer';
|
|
|
17
16
|
export { DefaultPrivilegeModel } from './defaultPrivilege';
|
|
18
17
|
export { DomainModel } from './domain';
|
|
19
18
|
export { DomainEventModel } from './domainEvent';
|
|
19
|
+
export { DomainTypeModel } from './domainType';
|
|
20
20
|
export { DomainVerificationModel } from './domainVerification';
|
|
21
21
|
export { EmbeddingChunkModel } from './embeddingChunk';
|
|
22
22
|
export { EnumModel } from './enum';
|
|
@@ -32,7 +32,6 @@ export { ManagedDomainModel } from './managedDomain';
|
|
|
32
32
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
33
33
|
export { PartitionModel } from './partition';
|
|
34
34
|
export { PlatformApiModel } from './platformApi';
|
|
35
|
-
export { PlatformApiModuleModel } from './platformApiModule';
|
|
36
35
|
export { PlatformApiSchemaModel } from './platformApiSchema';
|
|
37
36
|
export { PlatformApiSettingModel } from './platformApiSetting';
|
|
38
37
|
export { PlatformCorsSettingModel } from './platformCorsSetting';
|
|
@@ -10,8 +10,10 @@ const fieldSchema = {
|
|
|
10
10
|
alias: 'string',
|
|
11
11
|
apiId: 'uuid',
|
|
12
12
|
config: 'json',
|
|
13
|
+
createdAt: 'string',
|
|
13
14
|
functionDefinitionId: 'uuid',
|
|
14
15
|
id: 'uuid',
|
|
16
|
+
updatedAt: 'string',
|
|
15
17
|
};
|
|
16
18
|
const usage = '\nfunction-api-binding <command>\n\nCommands:\n list List functionApiBinding records\n find-first Find first matching functionApiBinding record\n get Get a functionApiBinding by ID\n create Create a new functionApiBinding\n update Update an existing functionApiBinding\n delete Delete a functionApiBinding\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
17
19
|
export default async (argv, prompter, _options) => {
|
|
@@ -58,8 +60,10 @@ async function handleList(argv, _prompter) {
|
|
|
58
60
|
alias: true,
|
|
59
61
|
apiId: true,
|
|
60
62
|
config: true,
|
|
63
|
+
createdAt: true,
|
|
61
64
|
functionDefinitionId: true,
|
|
62
65
|
id: true,
|
|
66
|
+
updatedAt: true,
|
|
63
67
|
};
|
|
64
68
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
65
69
|
const client = getClient();
|
|
@@ -80,8 +84,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
80
84
|
alias: true,
|
|
81
85
|
apiId: true,
|
|
82
86
|
config: true,
|
|
87
|
+
createdAt: true,
|
|
83
88
|
functionDefinitionId: true,
|
|
84
89
|
id: true,
|
|
90
|
+
updatedAt: true,
|
|
85
91
|
};
|
|
86
92
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
87
93
|
const client = getClient();
|
|
@@ -114,8 +120,10 @@ async function handleGet(argv, prompter) {
|
|
|
114
120
|
alias: true,
|
|
115
121
|
apiId: true,
|
|
116
122
|
config: true,
|
|
123
|
+
createdAt: true,
|
|
117
124
|
functionDefinitionId: true,
|
|
118
125
|
id: true,
|
|
126
|
+
updatedAt: true,
|
|
119
127
|
},
|
|
120
128
|
})
|
|
121
129
|
.execute();
|
|
@@ -174,8 +182,10 @@ async function handleCreate(argv, prompter) {
|
|
|
174
182
|
alias: true,
|
|
175
183
|
apiId: true,
|
|
176
184
|
config: true,
|
|
185
|
+
createdAt: true,
|
|
177
186
|
functionDefinitionId: true,
|
|
178
187
|
id: true,
|
|
188
|
+
updatedAt: true,
|
|
179
189
|
},
|
|
180
190
|
})
|
|
181
191
|
.execute();
|
|
@@ -243,8 +253,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
243
253
|
alias: true,
|
|
244
254
|
apiId: true,
|
|
245
255
|
config: true,
|
|
256
|
+
createdAt: true,
|
|
246
257
|
functionDefinitionId: true,
|
|
247
258
|
id: true,
|
|
259
|
+
updatedAt: true,
|
|
248
260
|
},
|
|
249
261
|
})
|
|
250
262
|
.execute();
|
|
@@ -10,8 +10,10 @@ const fieldSchema = {
|
|
|
10
10
|
alias: 'string',
|
|
11
11
|
apiId: 'uuid',
|
|
12
12
|
config: 'json',
|
|
13
|
+
createdAt: 'string',
|
|
13
14
|
functionDefinitionId: 'uuid',
|
|
14
15
|
id: 'uuid',
|
|
16
|
+
updatedAt: 'string',
|
|
15
17
|
};
|
|
16
18
|
const usage = '\nplatform-function-api-binding <command>\n\nCommands:\n list List platformFunctionApiBinding records\n find-first Find first matching platformFunctionApiBinding record\n get Get a platformFunctionApiBinding by ID\n create Create a new platformFunctionApiBinding\n update Update an existing platformFunctionApiBinding\n delete Delete a platformFunctionApiBinding\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
17
19
|
export default async (argv, prompter, _options) => {
|
|
@@ -58,8 +60,10 @@ async function handleList(argv, _prompter) {
|
|
|
58
60
|
alias: true,
|
|
59
61
|
apiId: true,
|
|
60
62
|
config: true,
|
|
63
|
+
createdAt: true,
|
|
61
64
|
functionDefinitionId: true,
|
|
62
65
|
id: true,
|
|
66
|
+
updatedAt: true,
|
|
63
67
|
};
|
|
64
68
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
65
69
|
const client = getClient();
|
|
@@ -80,8 +84,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
80
84
|
alias: true,
|
|
81
85
|
apiId: true,
|
|
82
86
|
config: true,
|
|
87
|
+
createdAt: true,
|
|
83
88
|
functionDefinitionId: true,
|
|
84
89
|
id: true,
|
|
90
|
+
updatedAt: true,
|
|
85
91
|
};
|
|
86
92
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
87
93
|
const client = getClient();
|
|
@@ -114,8 +120,10 @@ async function handleGet(argv, prompter) {
|
|
|
114
120
|
alias: true,
|
|
115
121
|
apiId: true,
|
|
116
122
|
config: true,
|
|
123
|
+
createdAt: true,
|
|
117
124
|
functionDefinitionId: true,
|
|
118
125
|
id: true,
|
|
126
|
+
updatedAt: true,
|
|
119
127
|
},
|
|
120
128
|
})
|
|
121
129
|
.execute();
|
|
@@ -174,8 +182,10 @@ async function handleCreate(argv, prompter) {
|
|
|
174
182
|
alias: true,
|
|
175
183
|
apiId: true,
|
|
176
184
|
config: true,
|
|
185
|
+
createdAt: true,
|
|
177
186
|
functionDefinitionId: true,
|
|
178
187
|
id: true,
|
|
188
|
+
updatedAt: true,
|
|
179
189
|
},
|
|
180
190
|
})
|
|
181
191
|
.execute();
|
|
@@ -243,8 +253,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
243
253
|
alias: true,
|
|
244
254
|
apiId: true,
|
|
245
255
|
config: true,
|
|
256
|
+
createdAt: true,
|
|
246
257
|
functionDefinitionId: true,
|
|
247
258
|
id: true,
|
|
259
|
+
updatedAt: true,
|
|
248
260
|
},
|
|
249
261
|
})
|
|
250
262
|
.execute();
|
|
@@ -12,6 +12,7 @@ const fieldSchema = {
|
|
|
12
12
|
channel: 'string',
|
|
13
13
|
completedAt: 'string',
|
|
14
14
|
createdAt: 'string',
|
|
15
|
+
databaseId: 'uuid',
|
|
15
16
|
definitionScope: 'string',
|
|
16
17
|
durationMs: 'int',
|
|
17
18
|
error: 'string',
|
|
@@ -74,6 +75,7 @@ async function handleList(argv, _prompter) {
|
|
|
74
75
|
channel: true,
|
|
75
76
|
completedAt: true,
|
|
76
77
|
createdAt: true,
|
|
78
|
+
databaseId: true,
|
|
77
79
|
definitionScope: true,
|
|
78
80
|
durationMs: true,
|
|
79
81
|
error: true,
|
|
@@ -110,6 +112,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
110
112
|
channel: true,
|
|
111
113
|
completedAt: true,
|
|
112
114
|
createdAt: true,
|
|
115
|
+
databaseId: true,
|
|
113
116
|
definitionScope: true,
|
|
114
117
|
durationMs: true,
|
|
115
118
|
error: true,
|
|
@@ -158,6 +161,7 @@ async function handleGet(argv, prompter) {
|
|
|
158
161
|
channel: true,
|
|
159
162
|
completedAt: true,
|
|
160
163
|
createdAt: true,
|
|
164
|
+
databaseId: true,
|
|
161
165
|
definitionScope: true,
|
|
162
166
|
durationMs: true,
|
|
163
167
|
error: true,
|
|
@@ -216,6 +220,13 @@ async function handleCreate(argv, prompter) {
|
|
|
216
220
|
required: false,
|
|
217
221
|
skipPrompt: true,
|
|
218
222
|
},
|
|
223
|
+
{
|
|
224
|
+
type: 'text',
|
|
225
|
+
name: 'databaseId',
|
|
226
|
+
message: 'databaseId',
|
|
227
|
+
required: false,
|
|
228
|
+
skipPrompt: true,
|
|
229
|
+
},
|
|
219
230
|
{
|
|
220
231
|
type: 'text',
|
|
221
232
|
name: 'definitionScope',
|
|
@@ -317,6 +328,7 @@ async function handleCreate(argv, prompter) {
|
|
|
317
328
|
apiBindingId: cleanedData.apiBindingId,
|
|
318
329
|
channel: cleanedData.channel,
|
|
319
330
|
completedAt: cleanedData.completedAt,
|
|
331
|
+
databaseId: cleanedData.databaseId,
|
|
320
332
|
definitionScope: cleanedData.definitionScope,
|
|
321
333
|
durationMs: cleanedData.durationMs,
|
|
322
334
|
error: cleanedData.error,
|
|
@@ -337,6 +349,7 @@ async function handleCreate(argv, prompter) {
|
|
|
337
349
|
channel: true,
|
|
338
350
|
completedAt: true,
|
|
339
351
|
createdAt: true,
|
|
352
|
+
databaseId: true,
|
|
340
353
|
definitionScope: true,
|
|
341
354
|
durationMs: true,
|
|
342
355
|
error: true,
|
|
@@ -407,6 +420,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
407
420
|
required: false,
|
|
408
421
|
skipPrompt: true,
|
|
409
422
|
},
|
|
423
|
+
{
|
|
424
|
+
type: 'text',
|
|
425
|
+
name: 'databaseId',
|
|
426
|
+
message: 'databaseId',
|
|
427
|
+
required: false,
|
|
428
|
+
skipPrompt: true,
|
|
429
|
+
},
|
|
410
430
|
{
|
|
411
431
|
type: 'text',
|
|
412
432
|
name: 'definitionScope',
|
|
@@ -512,6 +532,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
512
532
|
apiBindingId: cleanedData.apiBindingId,
|
|
513
533
|
channel: cleanedData.channel,
|
|
514
534
|
completedAt: cleanedData.completedAt,
|
|
535
|
+
databaseId: cleanedData.databaseId,
|
|
515
536
|
definitionScope: cleanedData.definitionScope,
|
|
516
537
|
durationMs: cleanedData.durationMs,
|
|
517
538
|
error: cleanedData.error,
|
|
@@ -532,6 +553,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
532
553
|
channel: true,
|
|
533
554
|
completedAt: true,
|
|
534
555
|
createdAt: true,
|
|
556
|
+
databaseId: true,
|
|
535
557
|
definitionScope: true,
|
|
536
558
|
durationMs: true,
|
|
537
559
|
error: true,
|