powersync 0.4.1 → 0.4.2
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 +14 -14
- package/dist/commands/instance/status.js +16 -4
- package/dist/commands/instance/stop.js +1 -1
- package/dist/commands/instance/sync-rules/deploy.js +2 -2
- package/dist/service/accounts.client.js +76 -53
- package/dist/service/powersync.client.js +8362 -2103
- package/dist/service/utils.js +22 -22
- package/oclif.manifest.json +1 -1
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ DESCRIPTION
|
|
|
71
71
|
Display help for powersync.
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.
|
|
74
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.8/src/commands/help.ts)_
|
|
75
75
|
|
|
76
76
|
## `powersync init`
|
|
77
77
|
|
|
@@ -89,7 +89,7 @@ EXAMPLES
|
|
|
89
89
|
$ npx powersync init
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
_See code: [src/commands/init.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
92
|
+
_See code: [src/commands/init.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/init.ts)_
|
|
93
93
|
|
|
94
94
|
## `powersync instance config`
|
|
95
95
|
|
|
@@ -106,7 +106,7 @@ EXAMPLES
|
|
|
106
106
|
$ npx powersync instance config
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
_See code: [src/commands/instance/config.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
109
|
+
_See code: [src/commands/instance/config.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/config.ts)_
|
|
110
110
|
|
|
111
111
|
## `powersync instance create`
|
|
112
112
|
|
|
@@ -132,7 +132,7 @@ EXAMPLES
|
|
|
132
132
|
$ npx powersync instance create
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
_See code: [src/commands/instance/create.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
135
|
+
_See code: [src/commands/instance/create.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/create.ts)_
|
|
136
136
|
|
|
137
137
|
## `powersync instance deploy`
|
|
138
138
|
|
|
@@ -157,7 +157,7 @@ EXAMPLES
|
|
|
157
157
|
$ npx powersync instance deploy
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
_See code: [src/commands/instance/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
160
|
+
_See code: [src/commands/instance/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/deploy.ts)_
|
|
161
161
|
|
|
162
162
|
## `powersync instance destroy`
|
|
163
163
|
|
|
@@ -177,7 +177,7 @@ EXAMPLES
|
|
|
177
177
|
$ npx powersync instance destroy
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
_See code: [src/commands/instance/destroy.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
180
|
+
_See code: [src/commands/instance/destroy.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/destroy.ts)_
|
|
181
181
|
|
|
182
182
|
## `powersync instance schema`
|
|
183
183
|
|
|
@@ -194,7 +194,7 @@ EXAMPLES
|
|
|
194
194
|
$ npx powersync instance schema
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
_See code: [src/commands/instance/schema.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
197
|
+
_See code: [src/commands/instance/schema.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/schema.ts)_
|
|
198
198
|
|
|
199
199
|
## `powersync instance set`
|
|
200
200
|
|
|
@@ -216,7 +216,7 @@ EXAMPLES
|
|
|
216
216
|
$ npx powersync instance set --instanceId=1234
|
|
217
217
|
```
|
|
218
218
|
|
|
219
|
-
_See code: [src/commands/instance/set.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
219
|
+
_See code: [src/commands/instance/set.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/set.ts)_
|
|
220
220
|
|
|
221
221
|
## `powersync instance status`
|
|
222
222
|
|
|
@@ -241,7 +241,7 @@ EXAMPLES
|
|
|
241
241
|
$ npx powersync instance status --orgId=1234 --projectId=1234 --instanceId=1234 --authToken=1234
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
-
_See code: [src/commands/instance/status.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
244
|
+
_See code: [src/commands/instance/status.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/status.ts)_
|
|
245
245
|
|
|
246
246
|
## `powersync instance stop`
|
|
247
247
|
|
|
@@ -261,7 +261,7 @@ EXAMPLES
|
|
|
261
261
|
$ npx powersync instance stop
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
-
_See code: [src/commands/instance/stop.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
264
|
+
_See code: [src/commands/instance/stop.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/stop.ts)_
|
|
265
265
|
|
|
266
266
|
## `powersync instance sync-rules deploy`
|
|
267
267
|
|
|
@@ -286,7 +286,7 @@ EXAMPLES
|
|
|
286
286
|
$ npx powersync instance sync-rules deploy -f path/to/file
|
|
287
287
|
```
|
|
288
288
|
|
|
289
|
-
_See code: [src/commands/instance/sync-rules/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
289
|
+
_See code: [src/commands/instance/sync-rules/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/sync-rules/deploy.ts)_
|
|
290
290
|
|
|
291
291
|
## `powersync instance sync-rules generate-schema`
|
|
292
292
|
|
|
@@ -312,7 +312,7 @@ EXAMPLES
|
|
|
312
312
|
$ npx powersync instance sync-rules generate-schema -f path/to/file
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
_See code: [src/commands/instance/sync-rules/generate-schema.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
315
|
+
_See code: [src/commands/instance/sync-rules/generate-schema.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/sync-rules/generate-schema.ts)_
|
|
316
316
|
|
|
317
317
|
## `powersync instance sync-rules validate`
|
|
318
318
|
|
|
@@ -336,7 +336,7 @@ EXAMPLES
|
|
|
336
336
|
$ npx powersync instance sync-rules validate -f path/to/file
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
_See code: [src/commands/instance/sync-rules/validate.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
339
|
+
_See code: [src/commands/instance/sync-rules/validate.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instance/sync-rules/validate.ts)_
|
|
340
340
|
|
|
341
341
|
## `powersync instances`
|
|
342
342
|
|
|
@@ -353,5 +353,5 @@ EXAMPLES
|
|
|
353
353
|
$ npx powersync instances
|
|
354
354
|
```
|
|
355
355
|
|
|
356
|
-
_See code: [src/commands/instances.ts](https://github.com/powersync-ja/cli/blob/v0.4.
|
|
356
|
+
_See code: [src/commands/instances.ts](https://github.com/powersync-ja/cli/blob/v0.4.2/src/commands/instances.ts)_
|
|
357
357
|
<!-- commandsstop -->
|
|
@@ -8,10 +8,22 @@ export default class InstanceStatus extends Command {
|
|
|
8
8
|
'<%= config.bin %> <%= command.id %> --orgId=1234 --projectId=1234 --instanceId=1234 --authToken=1234'
|
|
9
9
|
];
|
|
10
10
|
static flags = {
|
|
11
|
-
authToken: Flags.string({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
authToken: Flags.string({
|
|
12
|
+
char: 't',
|
|
13
|
+
description: 'Override current auth token.'
|
|
14
|
+
}),
|
|
15
|
+
instanceId: Flags.string({
|
|
16
|
+
char: 'i',
|
|
17
|
+
description: 'Override current instance by providing the ID of a different instance.'
|
|
18
|
+
}),
|
|
19
|
+
orgId: Flags.string({
|
|
20
|
+
char: 'o',
|
|
21
|
+
description: 'Override current organization by providing the ID of a different organization.'
|
|
22
|
+
}),
|
|
23
|
+
projectId: Flags.string({
|
|
24
|
+
char: 'p',
|
|
25
|
+
description: 'Override current project by providing the ID of a different project.'
|
|
26
|
+
})
|
|
15
27
|
};
|
|
16
28
|
async run() {
|
|
17
29
|
const { flags } = await this.parse(InstanceStatus);
|
|
@@ -21,7 +21,7 @@ export default class InstanceDeactivate extends Command {
|
|
|
21
21
|
}
|
|
22
22
|
];
|
|
23
23
|
const answers = await inquirer.prompt(questions);
|
|
24
|
-
if (!answers.areYouSure) {
|
|
24
|
+
if (!answers.areYouSure && !flags.skipConfirmation) {
|
|
25
25
|
return ux.log('Instance will not be stopped.');
|
|
26
26
|
}
|
|
27
27
|
const spinner = ora({
|
|
@@ -27,8 +27,8 @@ export default class SyncRulesDeploy extends Command {
|
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
29
|
const answers = await inquirer.prompt(questions);
|
|
30
|
-
if (!answers.areYouSure) {
|
|
31
|
-
return ux.log('Sync files were not deployed.');
|
|
30
|
+
if (!answers.areYouSure && !flags.skipConfirmation) {
|
|
31
|
+
return ux.log(red('Sync files were not deployed.'));
|
|
32
32
|
}
|
|
33
33
|
const syncRules = fs.readFileSync(flags.filePath, 'utf8');
|
|
34
34
|
const spinner = ora({
|
|
@@ -10049,10 +10049,7 @@ var models = {};
|
|
|
10049
10049
|
})(BUSINESS_REGION || (exports.BUSINESS_REGION = BUSINESS_REGION = {}));
|
|
10050
10050
|
exports.Organization = t.object({
|
|
10051
10051
|
label: t.string,
|
|
10052
|
-
trial: t.boolean.optional(),
|
|
10053
10052
|
locked: t.boolean.optional(),
|
|
10054
|
-
pre_signup_trial_expiry: t.string.optional(),
|
|
10055
|
-
trial_expiry: t.string.optional(),
|
|
10056
10053
|
business_customer_code: t.string.optional(),
|
|
10057
10054
|
business_customer_region: t.Enum(BUSINESS_REGION).optional()
|
|
10058
10055
|
});
|
|
@@ -10075,7 +10072,10 @@ var models = {};
|
|
|
10075
10072
|
vcs_mode: t.Enum(VCS_MODE).optional(),
|
|
10076
10073
|
source: source.SourceMetadata.optional(),
|
|
10077
10074
|
region: t.string,
|
|
10078
|
-
features: t.array(t.Enum(ProjectFeatureFlags))
|
|
10075
|
+
features: t.array(t.Enum(ProjectFeatureFlags)),
|
|
10076
|
+
trial: t.boolean.optional(),
|
|
10077
|
+
locked: t.boolean.optional(),
|
|
10078
|
+
trial_expiry: t.string.optional()
|
|
10079
10079
|
});
|
|
10080
10080
|
exports.AppResource = exports.App.and(codecs.ResourceId);
|
|
10081
10081
|
var UserOrgAccess;
|
|
@@ -10160,7 +10160,7 @@ var models = {};
|
|
|
10160
10160
|
return result;
|
|
10161
10161
|
};
|
|
10162
10162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10163
|
-
exports.UpdateOrgLocksParams = exports.SendMFASMSResponse = exports.SendMFASMSParams = exports.SetUserMFAPreferenceResponse = exports.SetUserMFAPreferenceParams = exports.GetMFABackupCodesResponse = exports.DeleteMFAFactorResponse = exports.DeleteMFAFactorParams = exports.VerifyMFAFactorResponse = exports.VerifyMFAFactorParams = exports.RegisterSMSMFAFactorResponse = exports.RegisterSMSMFAFactorParams = exports.RegisterTOTPMFAFactorResponse = exports.UpdateUserParams = exports.ListUserMFAFactorsResponse = exports.CreateUserParams = exports.GetPreferredMFAFactorResponse = exports.GetSensitiveAccessTokenResponse = exports.GetSensitiveAccessTokenParams = exports.GiveUserAccessParams = exports.TokenResponse = exports.CompleteSignupParams = exports.UpdateInviteParams = exports.
|
|
10163
|
+
exports.UpdateAppLocksParams = exports.UpdateOrgLocksParams = exports.SendMFASMSResponse = exports.SendMFASMSParams = exports.SetUserMFAPreferenceResponse = exports.SetUserMFAPreferenceParams = exports.GetMFABackupCodesResponse = exports.DeleteMFAFactorResponse = exports.DeleteMFAFactorParams = exports.VerifyMFAFactorResponse = exports.VerifyMFAFactorParams = exports.RegisterSMSMFAFactorResponse = exports.RegisterSMSMFAFactorParams = exports.RegisterTOTPMFAFactorResponse = exports.UpdateUserParams = exports.ListUserMFAFactorsResponse = exports.CreateUserParams = exports.GetPreferredMFAFactorResponse = exports.GetSensitiveAccessTokenResponse = exports.GetSensitiveAccessTokenParams = exports.GiveUserAccessParams = exports.TokenResponse = exports.CompleteSignupParams = exports.UpdateInviteParams = exports.GetSignupUserResponse = exports.CreateDeveloperInviteParams = exports.StartSignupParams = exports.ListUserResponse = exports.ListUserParams = exports.ListUserInvitesResponse = exports.GetUserInvitesParams = exports.ListAppsResponse = exports.ListAppParams = exports.UpdateAppParams = exports.CreateAppParams = exports.ListOrgResponse = exports.ListOrgParams = exports.UpdateOrgBilling = exports.UpdateOrgParams = exports.CreateOrgParams = exports.ExtendAppTrialParams = exports.UpgradeAppParams = exports.DowngradeAppParams = exports.ListResponseMetaData = exports.SearchParams = exports.PaginationParams = exports.OperationResponse = exports.IDParam = void 0;
|
|
10164
10164
|
const source = __importStar(dist$3);
|
|
10165
10165
|
const codecs = __importStar(dist);
|
|
10166
10166
|
const models$1 = __importStar(models);
|
|
@@ -10184,12 +10184,16 @@ var models = {};
|
|
|
10184
10184
|
total: t.number,
|
|
10185
10185
|
cursor: t.string
|
|
10186
10186
|
});
|
|
10187
|
-
exports.
|
|
10188
|
-
|
|
10187
|
+
exports.DowngradeAppParams = t.object({
|
|
10188
|
+
app_id: t.string,
|
|
10189
10189
|
trial_duration: t.number
|
|
10190
10190
|
});
|
|
10191
|
-
exports.
|
|
10192
|
-
|
|
10191
|
+
exports.UpgradeAppParams = t.object({
|
|
10192
|
+
app_id: t.string
|
|
10193
|
+
});
|
|
10194
|
+
exports.ExtendAppTrialParams = t.object({
|
|
10195
|
+
app_id: t.string,
|
|
10196
|
+
trial_duration: t.number
|
|
10193
10197
|
});
|
|
10194
10198
|
exports.CreateOrgParams = t.object({
|
|
10195
10199
|
name: t.string
|
|
@@ -10214,7 +10218,8 @@ var models = {};
|
|
|
10214
10218
|
vcs_mode: t.string,
|
|
10215
10219
|
source: source.SourceMetadata,
|
|
10216
10220
|
auth_scope_id: t.string.optional(),
|
|
10217
|
-
features: t.array(t.Enum(models$1.ProjectFeatureFlags)).optional()
|
|
10221
|
+
features: t.array(t.Enum(models$1.ProjectFeatureFlags)).optional(),
|
|
10222
|
+
trial: t.boolean.optional()
|
|
10218
10223
|
});
|
|
10219
10224
|
exports.UpdateAppParams = t.object({
|
|
10220
10225
|
id: t.string,
|
|
@@ -10225,7 +10230,9 @@ var models = {};
|
|
|
10225
10230
|
});
|
|
10226
10231
|
exports.ListAppParams = exports.PaginationParams.and(codecs.FilterProperties(codecs.ResourceId.and(t.object({
|
|
10227
10232
|
name: t.string,
|
|
10228
|
-
org_id: t.string
|
|
10233
|
+
org_id: t.string,
|
|
10234
|
+
trial: t.boolean,
|
|
10235
|
+
locked: t.boolean
|
|
10229
10236
|
}))));
|
|
10230
10237
|
exports.ListAppsResponse = exports.ListResponseMetaData.and(t.object({
|
|
10231
10238
|
objects: t.array(models$1.AppResource)
|
|
@@ -10238,10 +10245,12 @@ var models = {};
|
|
|
10238
10245
|
exports.ListUserResponse = exports.ListResponseMetaData.and(t.object({
|
|
10239
10246
|
objects: t.array(models$1.UserResource)
|
|
10240
10247
|
}));
|
|
10241
|
-
exports.
|
|
10248
|
+
exports.StartSignupParams = t.object({
|
|
10242
10249
|
email: t.string,
|
|
10250
|
+
/**
|
|
10251
|
+
* When "start signup" is initiated for someone else (e.g. by an admin from override), this is the id of the creator.
|
|
10252
|
+
*/
|
|
10243
10253
|
user_id: t.string.optional(),
|
|
10244
|
-
trial_duration: t.number.optional(),
|
|
10245
10254
|
features: t.array(t.Enum(models$1.ProjectFeatureFlags)).optional()
|
|
10246
10255
|
});
|
|
10247
10256
|
exports.CreateDeveloperInviteParams = t.object({
|
|
@@ -10254,8 +10263,9 @@ var models = {};
|
|
|
10254
10263
|
})
|
|
10255
10264
|
.optional()
|
|
10256
10265
|
});
|
|
10257
|
-
exports.
|
|
10258
|
-
onboarding_token: t.string.optional()
|
|
10266
|
+
exports.GetSignupUserResponse = models$1.UserResource.and(t.object({
|
|
10267
|
+
onboarding_token: t.string.optional(),
|
|
10268
|
+
new_organization: t.boolean
|
|
10259
10269
|
}));
|
|
10260
10270
|
exports.UpdateInviteParams = t.object({
|
|
10261
10271
|
id: t.string,
|
|
@@ -10266,7 +10276,8 @@ var models = {};
|
|
|
10266
10276
|
name: t.string,
|
|
10267
10277
|
phone_number: t.string.optional(),
|
|
10268
10278
|
password: t.string,
|
|
10269
|
-
send_welcome_email: t.boolean.optional()
|
|
10279
|
+
send_welcome_email: t.boolean.optional(),
|
|
10280
|
+
org_name: t.string.optional()
|
|
10270
10281
|
});
|
|
10271
10282
|
exports.TokenResponse = t.object({
|
|
10272
10283
|
token: t.string
|
|
@@ -10344,6 +10355,10 @@ var models = {};
|
|
|
10344
10355
|
exports.UpdateOrgLocksParams = t.object({
|
|
10345
10356
|
id: t.string,
|
|
10346
10357
|
locked: t.boolean
|
|
10358
|
+
});
|
|
10359
|
+
exports.UpdateAppLocksParams = t.object({
|
|
10360
|
+
id: t.string,
|
|
10361
|
+
locked: t.boolean
|
|
10347
10362
|
});
|
|
10348
10363
|
} (api$2));
|
|
10349
10364
|
|
|
@@ -10356,8 +10371,6 @@ var ROUTES;
|
|
|
10356
10371
|
ROUTES["CREATE_ORG"] = "/api/accounts/v5/organizations/create";
|
|
10357
10372
|
ROUTES["UPDATE_ORG"] = "/api/accounts/v5/organizations/update";
|
|
10358
10373
|
ROUTES["UPDATE_ORG_BILLING"] = "/api/accounts/v5/organizations/update-billing";
|
|
10359
|
-
ROUTES["DOWNGRADE_ORG"] = "/api/accounts/v5/organizations/downgrade";
|
|
10360
|
-
ROUTES["UPGRADE_ORG"] = "/api/accounts/v5/organizations/upgrade";
|
|
10361
10374
|
ROUTES["GET_ORG"] = "/api/accounts/v5/organizations/get";
|
|
10362
10375
|
ROUTES["LIST_ORGS"] = "/api/accounts/v5/organizations/list";
|
|
10363
10376
|
ROUTES["SEARCH_ORGS"] = "/api/accounts/v5/organizations/search";
|
|
@@ -10369,10 +10382,10 @@ var ROUTES;
|
|
|
10369
10382
|
ROUTES["LIST_USERS"] = "/api/accounts/v5/users/list";
|
|
10370
10383
|
ROUTES["SEARCH_USERS"] = "/api/accounts/v5/users/search";
|
|
10371
10384
|
ROUTES["GIVE_USER_ACCESS"] = "/api/accounts/v5/organizations/give-user-access";
|
|
10372
|
-
ROUTES["
|
|
10373
|
-
ROUTES["
|
|
10374
|
-
ROUTES["COMPLETE_SIGNUP"] = "/api/accounts/v5/
|
|
10375
|
-
ROUTES["PROVISION_USER_TOKEN"] = "/api/accounts/v5/
|
|
10385
|
+
ROUTES["START_SIGNUP"] = "/api/accounts/v5/signup/start";
|
|
10386
|
+
ROUTES["GET_SIGNUP_USER"] = "/api/accounts/v5/signup/get-user";
|
|
10387
|
+
ROUTES["COMPLETE_SIGNUP"] = "/api/accounts/v5/signup/complete-signup";
|
|
10388
|
+
ROUTES["PROVISION_USER_TOKEN"] = "/api/accounts/v5/signup/provision-user-token";
|
|
10376
10389
|
ROUTES["CREATE_DEV_INVITE"] = "/api/accounts/v5/invites/create";
|
|
10377
10390
|
ROUTES["UPDATE_INVITE"] = "/api/accounts/v5/invites/update";
|
|
10378
10391
|
ROUTES["DESTROY_INVITE"] = "/api/accounts/v5/invites/destroy";
|
|
@@ -10380,6 +10393,10 @@ var ROUTES;
|
|
|
10380
10393
|
ROUTES["LIST_DEV_INVITES"] = "/api/accounts/v5/invites/list";
|
|
10381
10394
|
ROUTES["ACCEPT_INVITE"] = "/api/accounts/v5/invites/accept";
|
|
10382
10395
|
ROUTES["DECLINE_INVITE"] = "/api/accounts/v5/invites/decline";
|
|
10396
|
+
ROUTES["DOWNGRADE_APP_TO_TRIAL"] = "/api/accounts/v5/apps/downgrade-to-trial";
|
|
10397
|
+
ROUTES["UPGRADE_APP_FROM_TRIAL"] = "/api/accounts/v5/apps/upgrade-to-trial";
|
|
10398
|
+
ROUTES["UPDATE_APP_LOCKS"] = "/api/accounts/v5/apps/update-locks";
|
|
10399
|
+
ROUTES["EXTEND_TRIAL"] = "/api/accounts/v5/apps/extend-trial";
|
|
10383
10400
|
ROUTES["CREATE_APP"] = "/api/accounts/v5/apps/create";
|
|
10384
10401
|
ROUTES["UPDATE_APP"] = "/api/accounts/v5/apps/update";
|
|
10385
10402
|
ROUTES["DELETE_APP"] = "/api/accounts/v5/apps/delete";
|
|
@@ -10468,11 +10485,14 @@ const types_accounts_hub_1 = dist$4;
|
|
|
10468
10485
|
class AccountsV5Client extends sdk.SDKClient {
|
|
10469
10486
|
constructor() {
|
|
10470
10487
|
super(...arguments);
|
|
10471
|
-
this.
|
|
10472
|
-
path: types_accounts_hub_1.ROUTES.
|
|
10488
|
+
this.downgradeAppToTrial = this.createEndpoint({
|
|
10489
|
+
path: types_accounts_hub_1.ROUTES.DOWNGRADE_APP_TO_TRIAL
|
|
10473
10490
|
});
|
|
10474
|
-
this.
|
|
10475
|
-
path: types_accounts_hub_1.ROUTES.
|
|
10491
|
+
this.upgradeAppFromTrial = this.createEndpoint({
|
|
10492
|
+
path: types_accounts_hub_1.ROUTES.UPGRADE_APP_FROM_TRIAL
|
|
10493
|
+
});
|
|
10494
|
+
this.extendAppTrial = this.createEndpoint({
|
|
10495
|
+
path: types_accounts_hub_1.ROUTES.EXTEND_TRIAL
|
|
10476
10496
|
});
|
|
10477
10497
|
this.createUser = this.createEndpoint({
|
|
10478
10498
|
path: types_accounts_hub_1.ROUTES.CREATE_USER
|
|
@@ -10538,12 +10558,15 @@ class AccountsV5Client extends sdk.SDKClient {
|
|
|
10538
10558
|
this.updateOrgLocks = this.createEndpoint({
|
|
10539
10559
|
path: types_accounts_hub_1.ROUTES.UPDATE_ORG_LOCKS
|
|
10540
10560
|
});
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10561
|
+
this.updateAppLocks = this.createEndpoint({
|
|
10562
|
+
path: types_accounts_hub_1.ROUTES.UPDATE_APP_LOCKS
|
|
10563
|
+
});
|
|
10564
|
+
// === SIGNUP ===
|
|
10565
|
+
this.startSignup = this.createEndpoint({
|
|
10566
|
+
path: types_accounts_hub_1.ROUTES.START_SIGNUP
|
|
10544
10567
|
});
|
|
10545
|
-
this.
|
|
10546
|
-
path: types_accounts_hub_1.ROUTES.
|
|
10568
|
+
this.getSignupUser = this.createEndpoint({
|
|
10569
|
+
path: types_accounts_hub_1.ROUTES.GET_SIGNUP_USER
|
|
10547
10570
|
});
|
|
10548
10571
|
this.completeSignup = this.createEndpoint({
|
|
10549
10572
|
path: types_accounts_hub_1.ROUTES.COMPLETE_SIGNUP
|
|
@@ -11134,7 +11157,7 @@ var files = [
|
|
|
11134
11157
|
"/dist",
|
|
11135
11158
|
"/oclif.manifest.json"
|
|
11136
11159
|
];
|
|
11137
|
-
var version = "0.4.
|
|
11160
|
+
var version = "0.4.2";
|
|
11138
11161
|
var bugs = "https://github.com/powersync-ja/cli/issues";
|
|
11139
11162
|
var types = "dist/index.d.ts";
|
|
11140
11163
|
var exports = "./lib/index.js";
|
|
@@ -11179,44 +11202,44 @@ var scripts = {
|
|
|
11179
11202
|
"pack:tarballs": "oclif pack tarballs --parallel"
|
|
11180
11203
|
};
|
|
11181
11204
|
var dependencies = {
|
|
11182
|
-
"@oclif/core": "^3.
|
|
11183
|
-
"@oclif/plugin-help": "^6.
|
|
11205
|
+
"@oclif/core": "^3.27.0",
|
|
11206
|
+
"@oclif/plugin-help": "^6.2.8",
|
|
11184
11207
|
"@oclif/plugin-not-found": "^3.1.4",
|
|
11185
|
-
"@oclif/plugin-warn-if-update-available": "^3.
|
|
11208
|
+
"@oclif/plugin-warn-if-update-available": "^3.1.11",
|
|
11186
11209
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
11187
11210
|
dotenv: "^16.4.5",
|
|
11188
|
-
inquirer: "^9.
|
|
11211
|
+
inquirer: "^9.3.6",
|
|
11189
11212
|
ora: "^8.0.1"
|
|
11190
11213
|
};
|
|
11191
11214
|
var devDependencies = {
|
|
11192
|
-
"@changesets/cli": "^2.27.
|
|
11193
|
-
"@journeyapps-platform/
|
|
11194
|
-
"@journeyapps-platform/powersync-types": "^0.17.4",
|
|
11195
|
-
"@journeyapps-platform/sdk-accounts-hub": "^6.0.0",
|
|
11215
|
+
"@changesets/cli": "^2.27.7",
|
|
11216
|
+
"@journeyapps-platform/sdk-accounts-hub": "^7.0.0",
|
|
11196
11217
|
"@journeyapps-platform/sdk-common": "^5.5.0",
|
|
11197
|
-
"@journeyapps-platform/sdk-powersync": "^0.
|
|
11198
|
-
"@journeyapps-platform/types-accounts-hub": "^
|
|
11199
|
-
"@
|
|
11218
|
+
"@journeyapps-platform/sdk-powersync": "^0.22.1",
|
|
11219
|
+
"@journeyapps-platform/types-accounts-hub": "^7.0.0",
|
|
11220
|
+
"@journeyapps-platform/powersync-types": "^0.22.0",
|
|
11221
|
+
"@powersync/service-sync-rules": "^0.18.2",
|
|
11222
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
11200
11223
|
"@rollup/plugin-json": "^6.1.0",
|
|
11201
11224
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
11202
11225
|
"@types/inquirer": "^9.0.7",
|
|
11203
|
-
"@types/node": "^20.
|
|
11204
|
-
esbuild: "^0.
|
|
11226
|
+
"@types/node": "^20.16.1",
|
|
11227
|
+
esbuild: "^0.23.1",
|
|
11205
11228
|
eslint: "^8.57.0",
|
|
11206
11229
|
"eslint-config-oclif": "^5",
|
|
11207
|
-
"eslint-config-oclif-typescript": "^3.1.
|
|
11230
|
+
"eslint-config-oclif-typescript": "^3.1.9",
|
|
11208
11231
|
"eslint-config-prettier": "^9.1.0",
|
|
11209
|
-
"eslint-plugin-prettier": "^5.1
|
|
11210
|
-
glob: "^
|
|
11211
|
-
oclif: "^4.
|
|
11212
|
-
prettier: "^3.
|
|
11213
|
-
rollup: "^4.
|
|
11232
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
11233
|
+
glob: "^11.0.0",
|
|
11234
|
+
oclif: "^4.14.22",
|
|
11235
|
+
prettier: "^3.3.3",
|
|
11236
|
+
rollup: "^4.21.0",
|
|
11214
11237
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
11215
11238
|
shx: "^0.3.4",
|
|
11216
11239
|
"strip-ansi": "^7.1.0",
|
|
11217
11240
|
"ts-node": "^10.9.2",
|
|
11218
|
-
typescript: "^5.4
|
|
11219
|
-
vitest: "^
|
|
11241
|
+
typescript: "^5.5.4",
|
|
11242
|
+
vitest: "^2.0.5"
|
|
11220
11243
|
};
|
|
11221
11244
|
var packageJSON = {
|
|
11222
11245
|
author: author,
|