@eide/foir-cli 0.33.0 → 0.34.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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -734,7 +734,7 @@ function createIdentityMethods(client) {
734
734
  async createCustomer(params) {
735
735
  const resp = await client.createCustomer(
736
736
  create(CreateCustomerRequestSchema, {
737
- email: params.email,
737
+ create: { email: params.email },
738
738
  password: params.password
739
739
  })
740
740
  );
@@ -751,11 +751,13 @@ function createIdentityMethods(client) {
751
751
  };
752
752
  },
753
753
  async updateCustomer(params) {
754
+ const update = {};
755
+ if (params.email !== void 0) update.email = { set: params.email };
756
+ if (params.status !== void 0) update.status = { set: params.status };
754
757
  const resp = await client.updateCustomer(
755
758
  create(UpdateCustomerRequestSchema, {
756
759
  id: params.id,
757
- email: params.email,
758
- status: params.status
760
+ update
759
761
  })
760
762
  );
761
763
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Universal platform CLI for Foir platform",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -50,7 +50,7 @@
50
50
  "@bufbuild/protovalidate": "^1.1.1",
51
51
  "@connectrpc/connect": "^2.0.0",
52
52
  "@connectrpc/connect-node": "^2.0.0",
53
- "@eide/foir-proto-ts": "^0.82.0",
53
+ "@eide/foir-proto-ts": "^0.85.0",
54
54
  "chalk": "^5.3.0",
55
55
  "commander": "^12.1.0",
56
56
  "dotenv": "^16.4.5",