appwrite-utils-cli 0.9.992 → 0.9.993

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/README.md CHANGED
@@ -149,6 +149,7 @@ This updated CLI ensures that developers have robust tools at their fingertips t
149
149
 
150
150
  ## Changelog
151
151
 
152
+ - 0.9.993: Fixed `updateFunctionSpecifications` resetting functions to default with undefined values (oops)
152
153
  - 0.9.992: Added `updateFunctionSpecifications` which lists functions and specifications to allow you to update your functions max CPU and RAM usage per-function
153
154
  - 0.9.990: Fixed `transferFilesLocalToLocal` and `remote` if a document exists with that `$id`, also fixed wipe `"all"` option also wiping the associated buckets
154
155
  - 0.9.983: Fixed `afterImportActions` not resolving
@@ -34,7 +34,7 @@ export const updateFunctionSpecifications = async (client, functionId, specifica
34
34
  }
35
35
  const functionFound = curFunction.functions[0];
36
36
  try {
37
- const functionResponse = await updateFunction(client, functionId, functionFound.name, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, specification);
37
+ const functionResponse = await updateFunction(client, functionId, functionFound.name, functionFound.runtime, functionFound.execute, functionFound.events, functionFound.schedule, functionFound.timeout, functionFound.enabled, functionFound.logging, functionFound.entrypoint, functionFound.commands, functionFound.scopes, functionFound.installationId, functionFound.providerRepositoryId, functionFound.providerBranch, functionFound.providerSilentMode, functionFound.providerRootDirectory, specification);
38
38
  return functionResponse;
39
39
  }
40
40
  catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.9.992",
4
+ "version": "0.9.993",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -105,21 +105,21 @@ export const updateFunctionSpecifications = async (
105
105
  client,
106
106
  functionId,
107
107
  functionFound.name,
108
- undefined,
109
- undefined,
110
- undefined,
111
- undefined,
112
- undefined,
113
- undefined,
114
- undefined,
115
- undefined,
116
- undefined,
117
- undefined,
118
- undefined,
119
- undefined,
120
- undefined,
121
- undefined,
122
- undefined,
108
+ functionFound.runtime as Runtime,
109
+ functionFound.execute,
110
+ functionFound.events,
111
+ functionFound.schedule,
112
+ functionFound.timeout,
113
+ functionFound.enabled,
114
+ functionFound.logging,
115
+ functionFound.entrypoint,
116
+ functionFound.commands,
117
+ functionFound.scopes,
118
+ functionFound.installationId,
119
+ functionFound.providerRepositoryId,
120
+ functionFound.providerBranch,
121
+ functionFound.providerSilentMode,
122
+ functionFound.providerRootDirectory,
123
123
  specification
124
124
  );
125
125
  return functionResponse;