@supacloud/cli 0.107.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +35 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21603,7 +21603,7 @@ var starter_metadata_default = {
|
|
|
21603
21603
|
version: "0.11.0"
|
|
21604
21604
|
},
|
|
21605
21605
|
contracts: {
|
|
21606
|
-
version: "0.
|
|
21606
|
+
version: "0.14.0"
|
|
21607
21607
|
},
|
|
21608
21608
|
db: {
|
|
21609
21609
|
version: "0.20.0",
|
|
@@ -26373,6 +26373,38 @@ export const ${className}JobStatuses = new InjectionToken<${className}JobStatusP
|
|
|
26373
26373
|
export const ${className}Refresher = new InjectionToken<${className}RefreshPort>(
|
|
26374
26374
|
"${name}.refresher", { scope: "job" },
|
|
26375
26375
|
);
|
|
26376
|
+
`,
|
|
26377
|
+
[`${name}.client.ts`]: `import {
|
|
26378
|
+
createFeatureSliceCommandClient,
|
|
26379
|
+
type AuthoritativeCommandContract,
|
|
26380
|
+
type AuthoritativeCommandTransport,
|
|
26381
|
+
type FeatureSliceCommandClient,
|
|
26382
|
+
type FeatureSliceCommandClientOptions,
|
|
26383
|
+
} from "@supacloud/contracts/client";
|
|
26384
|
+
import type { ${className}ApproveCommand } from "./${name}.model";
|
|
26385
|
+
import { ${className}ApproveInvalidateTags } from "./${name}.contracts";
|
|
26386
|
+
|
|
26387
|
+
/**
|
|
26388
|
+
* Browser/client boundary for the Feature transition.
|
|
26389
|
+
*
|
|
26390
|
+
* The transport must call the real generated API/RPC path. The framework owns
|
|
26391
|
+
* pending identity, read-only recovery and explicit invalidation metadata;
|
|
26392
|
+
* persistence, authorization and the receipt source remain application-owned.
|
|
26393
|
+
*/
|
|
26394
|
+
export type ${className}CommandTransport = AuthoritativeCommandTransport<${className}ApproveCommand>;
|
|
26395
|
+
export type ${className}CommandContract<Acknowledgement, Authority> =
|
|
26396
|
+
AuthoritativeCommandContract<${className}ApproveCommand, Acknowledgement, Authority>;
|
|
26397
|
+
|
|
26398
|
+
export function create${className}CommandClient<Acknowledgement, Authority>(
|
|
26399
|
+
contract: ${className}CommandContract<Acknowledgement, Authority>,
|
|
26400
|
+
transport: ${className}CommandTransport,
|
|
26401
|
+
options: FeatureSliceCommandClientOptions<${className}ApproveCommand>,
|
|
26402
|
+
): FeatureSliceCommandClient<${className}ApproveCommand, Authority> {
|
|
26403
|
+
return createFeatureSliceCommandClient(contract, transport, {
|
|
26404
|
+
...options,
|
|
26405
|
+
invalidateTags: options.invalidateTags ?? ${className}ApproveInvalidateTags,
|
|
26406
|
+
});
|
|
26407
|
+
}
|
|
26376
26408
|
`,
|
|
26377
26409
|
[`${name}.service.ts`]: `import {
|
|
26378
26410
|
FeatureAdapterError, Inject, Injectable, Optional, REQUEST_CONTEXT, requireFeatureOperationResult,
|
|
@@ -33054,7 +33086,7 @@ async function runProjectDeployment(http, args) {
|
|
|
33054
33086
|
// package.json
|
|
33055
33087
|
var package_default = {
|
|
33056
33088
|
name: "@supacloud/cli",
|
|
33057
|
-
version: "0.
|
|
33089
|
+
version: "0.108.0",
|
|
33058
33090
|
description: "Project-scoped CLI for SupaCloud users",
|
|
33059
33091
|
type: "module",
|
|
33060
33092
|
main: "./dist/index.js",
|
|
@@ -33112,7 +33144,7 @@ var package_default = {
|
|
|
33112
33144
|
typebox: "1.3.37"
|
|
33113
33145
|
},
|
|
33114
33146
|
overrides: {
|
|
33115
|
-
"@supacloud/contracts": "0.
|
|
33147
|
+
"@supacloud/contracts": "0.14.0",
|
|
33116
33148
|
"@supacloud/delivery": "0.21.0",
|
|
33117
33149
|
"@graphql-tools/utils": "^12.0.4"
|
|
33118
33150
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.108.0",
|
|
4
4
|
"description": "Project-scoped CLI for SupaCloud users",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"typebox": "1.3.37"
|
|
59
59
|
},
|
|
60
60
|
"overrides": {
|
|
61
|
-
"@supacloud/contracts": "0.
|
|
61
|
+
"@supacloud/contracts": "0.14.0",
|
|
62
62
|
"@supacloud/delivery": "0.21.0",
|
|
63
63
|
"@graphql-tools/utils": "^12.0.4"
|
|
64
64
|
},
|