@jinshuju/cli 0.15.0 → 0.17.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/README.md +71 -0
- package/dist/cli.js +5 -1
- package/dist/commands/email.d.ts +2 -0
- package/dist/commands/email.js +162 -0
- package/dist/commands/form.js +11 -2
- package/dist/commands/index.js +24 -2
- package/dist/commands/notification.d.ts +2 -0
- package/dist/commands/notification.js +163 -0
- package/dist/commands/routine.d.ts +13 -0
- package/dist/commands/routine.js +353 -0
- package/dist/commands/shared.d.ts +29 -0
- package/dist/commands/shared.js +81 -1
- package/dist/commands/sms.js +274 -3
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/generated/operations.d.ts +1 -1
- package/dist/generated/operations.js +609 -0
- package/dist/http.js +17 -1
- package/dist/spec.js +16 -3
- package/package.json +1 -1
package/dist/commands/sms.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PAGINATION_OPTIONS, UsageError } from '../options.js';
|
|
2
2
|
import { progress } from '../progress.js';
|
|
3
3
|
import { bodyChoices, call, choices } from '../spec.js';
|
|
4
|
-
import { confirmed, LISTING, paging, YES_OPTION } from './shared.js';
|
|
4
|
+
import { confirmed, DAY_RANGE_OPTIONS, dayRange, ESTIMATE_OPTION, estimating, FORM_OPTION, given, LISTING, NARROWING_OPTIONS, narrowingBody, narrowingQuery, paging, requiredOption as required, SELECT_ALL_OPTION, selectAll, SEND_OPTION, sendingConfirmed, YES_OPTION } from './shared.js';
|
|
5
5
|
import { upload } from './upload.js';
|
|
6
6
|
import { basename } from 'node:path';
|
|
7
7
|
/**
|
|
@@ -98,6 +98,48 @@ async function signatureMaterials(input, client) {
|
|
|
98
98
|
}
|
|
99
99
|
return body;
|
|
100
100
|
}
|
|
101
|
+
const MOBILE_FIELD_OPTION = {
|
|
102
|
+
name: '--field',
|
|
103
|
+
type: 'string',
|
|
104
|
+
placeholder: '<api_code>',
|
|
105
|
+
description: 'Mobile field to send to; a table column as <table api_code>.<column api_code>'
|
|
106
|
+
};
|
|
107
|
+
const TEMPLATE_ID_OPTION = {
|
|
108
|
+
name: '--template-id',
|
|
109
|
+
type: 'string',
|
|
110
|
+
placeholder: '<id>',
|
|
111
|
+
description: 'Template to send, from `sms template list`'
|
|
112
|
+
};
|
|
113
|
+
const TIMING_OPTIONS = [
|
|
114
|
+
{
|
|
115
|
+
name: '--placeholder',
|
|
116
|
+
type: 'string',
|
|
117
|
+
repeatable: true,
|
|
118
|
+
placeholder: '<api_code>',
|
|
119
|
+
description: 'Field filling the next template variable, repeatable in variable order; a variable without one takes the ' +
|
|
120
|
+
'field whose api_code is its name'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: '--send-at',
|
|
124
|
+
type: 'string',
|
|
125
|
+
placeholder: '<time>',
|
|
126
|
+
description: 'Send at this future time, ISO 8601 with a time zone offset, e.g. 2026-10-24T09:00:00+08:00'
|
|
127
|
+
},
|
|
128
|
+
{ name: '--manual', type: 'boolean', description: 'Wait to be sent with `sms task send` once it passes review' }
|
|
129
|
+
];
|
|
130
|
+
const TASK_ARG = [{ name: 'id', required: true, description: 'Task id, from `sms task list`' }];
|
|
131
|
+
function placeholders(input) {
|
|
132
|
+
const keys = input.options.placeholder ?? [];
|
|
133
|
+
return keys.length > 0 ? keys : undefined;
|
|
134
|
+
}
|
|
135
|
+
/** When and how it sends, only as far as the flags say. */
|
|
136
|
+
function timing(input) {
|
|
137
|
+
return {
|
|
138
|
+
placeholder_keys: placeholders(input),
|
|
139
|
+
send_at: input.options.send_at,
|
|
140
|
+
auto_send: input.options.manual ? false : undefined
|
|
141
|
+
};
|
|
142
|
+
}
|
|
101
143
|
/** Only the keys whose flags were given, so an update leaves the rest as it was. */
|
|
102
144
|
function templateBody(input) {
|
|
103
145
|
const body = {};
|
|
@@ -109,12 +151,40 @@ function templateBody(input) {
|
|
|
109
151
|
body.apply_description = input.options.description;
|
|
110
152
|
return body;
|
|
111
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* One row per template, carrying its signature, so the template id a
|
|
156
|
+
* notification rule sends with is on the screen. A signature without
|
|
157
|
+
* templates still gets a row, for its own review status.
|
|
158
|
+
*/
|
|
159
|
+
function templatesForReading(body) {
|
|
160
|
+
const signatures = body.signatures ?? [];
|
|
161
|
+
const data = signatures.flatMap((signature) => {
|
|
162
|
+
const own = {
|
|
163
|
+
signature: signature.signature,
|
|
164
|
+
signature_status: signature.status,
|
|
165
|
+
signature_reason: signature.reason
|
|
166
|
+
};
|
|
167
|
+
const templates = signature.templates ?? [];
|
|
168
|
+
if (templates.length === 0)
|
|
169
|
+
return [own];
|
|
170
|
+
return templates.map((template) => ({
|
|
171
|
+
template_id: template.id,
|
|
172
|
+
...own,
|
|
173
|
+
template_status: template.status,
|
|
174
|
+
template_reason: template.reason,
|
|
175
|
+
content: template.content
|
|
176
|
+
}));
|
|
177
|
+
});
|
|
178
|
+
return { data };
|
|
179
|
+
}
|
|
112
180
|
export const SMS = [
|
|
113
181
|
{
|
|
114
182
|
path: ['sms', 'status'],
|
|
115
183
|
summary: 'List SMS signatures and templates with their review status and why a review failed',
|
|
116
|
-
description: 'Your own signatures and templates, not those of the rest of the account.'
|
|
117
|
-
|
|
184
|
+
description: 'Your own signatures and templates, not those of the rest of the account. ' +
|
|
185
|
+
'template_id is what `notification create --sms-template` takes.',
|
|
186
|
+
request: () => call('listSmsAuditStatuses'),
|
|
187
|
+
render: templatesForReading
|
|
118
188
|
},
|
|
119
189
|
{
|
|
120
190
|
path: ['sms', 'signature', 'list'],
|
|
@@ -306,5 +376,206 @@ export const SMS = [
|
|
|
306
376
|
return call('deleteSmsTemplate', { path: { id: input.args.id } });
|
|
307
377
|
},
|
|
308
378
|
examples: ['jinshuju sms template delete 6512a1c2d3e4f5a6b7c8d9e0 --yes']
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
path: ['sms', 'send'],
|
|
382
|
+
summary: 'Send an SMS template to the entries of a form',
|
|
383
|
+
description: 'Picks the entries the way `entry count` narrows them, or the whole form with --select-all, and sends to the ' +
|
|
384
|
+
'mobile field --field names. --estimate answers how many entries and numbers it reaches, how many are missing ' +
|
|
385
|
+
'a number, the SMS it bills and whether the quota covers them, and sends nothing; --yes sends. The entries are ' +
|
|
386
|
+
'picked again when it sends, so a change in between changes what goes out. A template still under review is ' +
|
|
387
|
+
'taken, and the task waits for it.',
|
|
388
|
+
options: [
|
|
389
|
+
FORM_OPTION,
|
|
390
|
+
MOBILE_FIELD_OPTION,
|
|
391
|
+
TEMPLATE_ID_OPTION,
|
|
392
|
+
...TIMING_OPTIONS,
|
|
393
|
+
...NARROWING_OPTIONS,
|
|
394
|
+
SELECT_ALL_OPTION,
|
|
395
|
+
ESTIMATE_OPTION,
|
|
396
|
+
SEND_OPTION
|
|
397
|
+
],
|
|
398
|
+
request: (input) => {
|
|
399
|
+
const path = { form_token: required(input, 'form') };
|
|
400
|
+
const entry_field = required(input, 'field');
|
|
401
|
+
const sms_template_id = required(input, 'template_id');
|
|
402
|
+
if (estimating(input, 'Sending SMS')) {
|
|
403
|
+
return call('estimateSmsTask', {
|
|
404
|
+
path,
|
|
405
|
+
query: {
|
|
406
|
+
entry_field,
|
|
407
|
+
...narrowingQuery(input),
|
|
408
|
+
select_all: selectAll(input),
|
|
409
|
+
sms_template_id,
|
|
410
|
+
placeholder_keys: placeholders(input)
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
return call('createSmsTask', {
|
|
415
|
+
path,
|
|
416
|
+
body: given({
|
|
417
|
+
entry_field,
|
|
418
|
+
...narrowingBody(input),
|
|
419
|
+
select_all: selectAll(input),
|
|
420
|
+
sms_template_id,
|
|
421
|
+
...timing(input)
|
|
422
|
+
})
|
|
423
|
+
});
|
|
424
|
+
},
|
|
425
|
+
examples: [
|
|
426
|
+
"jinshuju sms send --form Kp7mQ2 --field field_2 --template-id 6512a1c2d3e4f5a6b7c8d9e0 --filter 'field_5 eq 已报名' --estimate",
|
|
427
|
+
"jinshuju sms send --form Kp7mQ2 --field field_2 --template-id 6512a1c2d3e4f5a6b7c8d9e0 --filter 'field_5 eq 已报名' --yes",
|
|
428
|
+
'jinshuju sms send --form Kp7mQ2 --field field_2 --template-id 6512a1c2d3e4f5a6b7c8d9e0 --select-all ' +
|
|
429
|
+
'--send-at 2026-10-24T09:00:00+08:00 --yes'
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
path: ['sms', 'task', 'list'],
|
|
434
|
+
summary: "List a form's SMS tasks, newest first, with how many numbers succeeded or failed so far",
|
|
435
|
+
description: '--from and --to pick the tasks by the day they were created. A page holds at most 100 tasks.',
|
|
436
|
+
options: [
|
|
437
|
+
FORM_OPTION,
|
|
438
|
+
{
|
|
439
|
+
name: '--status',
|
|
440
|
+
type: 'string',
|
|
441
|
+
choices: choices('listSmsTasks', 'status'),
|
|
442
|
+
placeholder: '<status>',
|
|
443
|
+
description: 'Only the tasks in this status'
|
|
444
|
+
},
|
|
445
|
+
...DAY_RANGE_OPTIONS,
|
|
446
|
+
...PAGINATION_OPTIONS
|
|
447
|
+
],
|
|
448
|
+
request: (input) => call('listSmsTasks', {
|
|
449
|
+
path: { form_token: required(input, 'form') },
|
|
450
|
+
query: { status: input.options.status, ...dayRange(input), ...paging(input) }
|
|
451
|
+
}),
|
|
452
|
+
paginate: LISTING,
|
|
453
|
+
examples: [
|
|
454
|
+
'jinshuju sms task list --form Kp7mQ2',
|
|
455
|
+
'jinshuju sms task list --form Kp7mQ2 --status template_fail',
|
|
456
|
+
'jinshuju sms task list --form Kp7mQ2 --from 2026-10-01 --to 2026-10-31'
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
path: ['sms', 'task', 'get'],
|
|
461
|
+
summary: 'Show an SMS task and how many numbers succeeded or failed so far',
|
|
462
|
+
args: TASK_ARG,
|
|
463
|
+
options: [FORM_OPTION],
|
|
464
|
+
request: (input) => call('getSmsTask', { path: { form_token: required(input, 'form'), id: input.args.id } }),
|
|
465
|
+
examples: ['jinshuju sms task get 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2']
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
path: ['sms', 'task', 'activities'],
|
|
469
|
+
summary: 'List the sending result of each number an SMS task sent to',
|
|
470
|
+
args: TASK_ARG,
|
|
471
|
+
options: [
|
|
472
|
+
FORM_OPTION,
|
|
473
|
+
{
|
|
474
|
+
name: '--status',
|
|
475
|
+
type: 'string',
|
|
476
|
+
choices: choices('listSmsTaskActivities', 'status'),
|
|
477
|
+
placeholder: '<status>',
|
|
478
|
+
description: 'Only the numbers with this result; both when omitted'
|
|
479
|
+
},
|
|
480
|
+
{ name: '--mobile', type: 'string', placeholder: '<mobile>', description: 'Only this number' },
|
|
481
|
+
...PAGINATION_OPTIONS
|
|
482
|
+
],
|
|
483
|
+
request: (input) => call('listSmsTaskActivities', {
|
|
484
|
+
path: { form_token: required(input, 'form'), id: input.args.id },
|
|
485
|
+
query: {
|
|
486
|
+
status: input.options.status,
|
|
487
|
+
mobile: input.options.mobile,
|
|
488
|
+
...paging(input)
|
|
489
|
+
}
|
|
490
|
+
}),
|
|
491
|
+
paginate: LISTING,
|
|
492
|
+
examples: ['jinshuju sms task activities 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2 --status FAILED']
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
path: ['sms', 'task', 'revoke'],
|
|
496
|
+
summary: 'Revoke an SMS task waiting to send or under content review, so it never sends',
|
|
497
|
+
args: TASK_ARG,
|
|
498
|
+
options: [FORM_OPTION],
|
|
499
|
+
request: (input) => call('updateSmsTask', {
|
|
500
|
+
path: { form_token: required(input, 'form'), id: input.args.id },
|
|
501
|
+
body: { revoked: true }
|
|
502
|
+
}),
|
|
503
|
+
examples: ['jinshuju sms task revoke 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2']
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
path: ['sms', 'task', 'change'],
|
|
507
|
+
summary: 'Change an SMS task whose template failed review, and send it again',
|
|
508
|
+
description: 'Only a task in template_fail. It keeps its entries and its id; --field and --placeholder left out keep what ' +
|
|
509
|
+
'the task has. --estimate answers what it would bill with the new template and sends nothing; --yes sends.',
|
|
510
|
+
args: TASK_ARG,
|
|
511
|
+
options: [
|
|
512
|
+
FORM_OPTION,
|
|
513
|
+
TEMPLATE_ID_OPTION,
|
|
514
|
+
{ ...MOBILE_FIELD_OPTION, description: `${MOBILE_FIELD_OPTION.description}; the task's own when omitted` },
|
|
515
|
+
...TIMING_OPTIONS,
|
|
516
|
+
ESTIMATE_OPTION,
|
|
517
|
+
SEND_OPTION
|
|
518
|
+
],
|
|
519
|
+
request: (input) => {
|
|
520
|
+
const path = { form_token: required(input, 'form'), id: input.args.id };
|
|
521
|
+
const sms_template_id = required(input, 'template_id');
|
|
522
|
+
const entry_field = input.options.field;
|
|
523
|
+
if (estimating(input, `Sending task ${input.args.id} again`)) {
|
|
524
|
+
return call('estimateSmsTaskChange', {
|
|
525
|
+
path,
|
|
526
|
+
query: { entry_field, sms_template_id, placeholder_keys: placeholders(input) }
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
return call('updateSmsTask', { path, body: given({ entry_field, sms_template_id, ...timing(input) }) });
|
|
530
|
+
},
|
|
531
|
+
examples: [
|
|
532
|
+
'jinshuju sms task change 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2 --template-id 6512a1c2d3e4f5a6b7c8d9e1 --estimate',
|
|
533
|
+
'jinshuju sms task change 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2 --template-id 6512a1c2d3e4f5a6b7c8d9e1 --yes'
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
path: ['sms', 'task', 'send'],
|
|
538
|
+
summary: 'Send an SMS task created with --manual',
|
|
539
|
+
description: 'Once it has passed review. A task given a send time waits until then.',
|
|
540
|
+
args: TASK_ARG,
|
|
541
|
+
options: [FORM_OPTION, SEND_OPTION],
|
|
542
|
+
request: (input) => {
|
|
543
|
+
sendingConfirmed(input, `Sending task ${input.args.id}`);
|
|
544
|
+
return call('sendSmsTask', { path: { form_token: required(input, 'form'), id: input.args.id } });
|
|
545
|
+
},
|
|
546
|
+
examples: ['jinshuju sms task send 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2 --yes']
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
path: ['sms', 'task', 'resend'],
|
|
550
|
+
summary: 'Send an SMS task again to the entries that got a result',
|
|
551
|
+
description: 'A new task, with the same template and variables, to the entries of this one that got --status: FAILED, ' +
|
|
552
|
+
'SUCCESS or ALL. A filter, keyword or view narrows them further, and a serial_number none_in condition leaves ' +
|
|
553
|
+
'some out. It sends at once. --estimate answers what it would send and bill and sends nothing; --yes sends.',
|
|
554
|
+
args: TASK_ARG,
|
|
555
|
+
options: [
|
|
556
|
+
FORM_OPTION,
|
|
557
|
+
{
|
|
558
|
+
name: '--status',
|
|
559
|
+
type: 'string',
|
|
560
|
+
choices: bodyChoices('resendSmsTask', 'status'),
|
|
561
|
+
placeholder: '<status>',
|
|
562
|
+
description: 'Send again to the entries with this result; ALL for every one the task sent to'
|
|
563
|
+
},
|
|
564
|
+
...NARROWING_OPTIONS,
|
|
565
|
+
ESTIMATE_OPTION,
|
|
566
|
+
SEND_OPTION
|
|
567
|
+
],
|
|
568
|
+
request: (input) => {
|
|
569
|
+
const path = { form_token: required(input, 'form'), id: input.args.id };
|
|
570
|
+
const status = required(input, 'status');
|
|
571
|
+
if (estimating(input, `Sending task ${input.args.id} again`)) {
|
|
572
|
+
return call('estimateSmsTaskResend', { path, query: { status, ...narrowingQuery(input) } });
|
|
573
|
+
}
|
|
574
|
+
return call('resendSmsTask', { path, body: given({ status, ...narrowingBody(input) }) });
|
|
575
|
+
},
|
|
576
|
+
examples: [
|
|
577
|
+
'jinshuju sms task resend 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2 --status FAILED --estimate',
|
|
578
|
+
"jinshuju sms task resend 6716f2a8c1d2e3f4a5b6c7d9 --form Kp7mQ2 --status FAILED --filter 'serial_number none_in 3,8' --yes"
|
|
579
|
+
]
|
|
309
580
|
}
|
|
310
581
|
];
|
package/dist/config.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const defaultConfigPath: string;
|
|
|
63
63
|
export declare const defaultHost = "https://jinshuju.net";
|
|
64
64
|
export declare const defaultAuthHost = "https://account.jinshuju.net";
|
|
65
65
|
export declare const defaultOAuthClientId = "jinshuju_cli_public";
|
|
66
|
-
export declare const defaultScopes = "public forms read_entries write_entries form_setting read_contacts users";
|
|
66
|
+
export declare const defaultScopes = "public forms read_entries write_entries form_setting read_contacts users routines";
|
|
67
67
|
/**
|
|
68
68
|
* One credential at a time: a login of either kind replaces whatever the last
|
|
69
69
|
* one stored, so the file never holds two that disagree about who is calling.
|
package/dist/config.js
CHANGED
|
@@ -6,7 +6,7 @@ export const defaultConfigPath = join(homedir(), '.jinshuju', 'config.json');
|
|
|
6
6
|
export const defaultHost = 'https://jinshuju.net';
|
|
7
7
|
export const defaultAuthHost = 'https://account.jinshuju.net';
|
|
8
8
|
export const defaultOAuthClientId = 'jinshuju_cli_public';
|
|
9
|
-
export const defaultScopes = 'public forms read_entries write_entries form_setting read_contacts users';
|
|
9
|
+
export const defaultScopes = 'public forms read_entries write_entries form_setting read_contacts users routines';
|
|
10
10
|
function readConfigFile(configPath) {
|
|
11
11
|
if (!existsSync(configPath))
|
|
12
12
|
return {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Operation, Schema } from '../spec.js';
|
|
2
2
|
/** The path every operation's path is relative to, from `servers`. */
|
|
3
3
|
export declare const BASE_PATH = "/api/v1";
|
|
4
|
-
export type OperationId = 'aggregateEntries' | 'aggregateFormViewEntries' | 'aggregateTableEntries' | 'aggregateTableViewEntries' | 'aggregateTradeTransactions' | 'checkFormFieldData' | 'checkTableFieldData' | 'copyForm' | 'countEntries' | 'countEntriesAcrossForms' | 'countFormViewEntries' | 'countTableEntries' | 'countTableViewEntries' | 'createCheckinCampaign' | 'createEntriesBatch' | 'createEntry' | 'createEntryComment' | 'createEntryImport' | 'createEntryLegacy' | 'createFillFormEntry' | 'createFillViewEntry' | 'createFolder' | 'createForm' | 'createFormView' | 'createFormWebhook' | 'createOpensearchQuery' | 'createPredefinedChoicesSet' | 'createSmsSignature' | 'createSmsTemplate' | 'createTable' | 'createTableEntry' | 'createTableEntryComment' | 'createTableView' | 'createTemplateUsage' | 'createWeixinOauthSession' | 'deleteCheckinCampaign' | 'deleteEntry' | 'deleteEntryComment' | 'deleteForm' | 'deleteFormView' | 'deleteFormWebhook' | 'deletePredefinedChoicesSet' | 'deleteSmsSignature' | 'deleteSmsTemplate' | 'deleteTable' | 'deleteTableEntry' | 'deleteTableEntryComment' | 'deleteTableView' | 'getBillingAccount' | 'getCheckinCampaign' | 'getCurrentUser' | 'getEntry' | 'getEntryImport' | 'getEntryStats' | 'getEvaluationSetting' | 'getExamSetting' | 'getFieldType' | 'getFillFormPage' | 'getFillViewPage' | 'getFolder' | 'getForm' | 'getFormSetting' | 'getFormView' | 'getManuallyCloseRule' | 'getOpensearchQuery' | 'getTable' | 'getTableEntry' | 'getTableView' | 'getTradeMerchant' | 'listBillingAccountInvoices' | 'listBillingAccountPaidFeatures' | 'listBillingAccountPaymentHistories' | 'listBillingAccountUsers' | 'listCheckinCampaigns' | 'listContacts' | 'listEntries' | 'listEntryComments' | 'listExtendedAttributes' | 'listFieldRules' | 'listFieldTypes' | 'listFolders' | 'listFormCooperators' | 'listFormViewEntries' | 'listFormViews' | 'listForms' | 'listMyFilledForms' | 'listMySubmittedEntries' | 'listOpensearchQueries' | 'listOpensearchQuerySuggestions' | 'listPredefinedChoicesSets' | 'listSmsAuditStatuses' | 'listSmsSignatures' | 'listSmsTemplates' | 'listTableEntries' | 'listTableEntryComments' | 'listTableViewEntries' | 'listTableViews' | 'listTables' | 'listTradePayouts' | 'listTradeRefunds' | 'listTradeTransactions' | 'moveFormToFolder' | 'moveTableToFolder' | 'patchEntriesBatch' | 'previewFormFieldTypeChange' | 'previewTableFieldTypeChange' | 'replaceEntry' | 'replaceTableEntry' | 'searchEntriesAcrossForms' | 'searchMySubmittedEntries' | 'summarizeEntries' | 'summarizeFormViewEntries' | 'summarizeTableEntries' | 'summarizeTableViewEntries' | 'updateAccessPolicy' | 'updateCheckinCampaign' | 'updateEntry' | 'updateEntryComment' | 'updateEntryViaPost' | 'updateEvaluationSetting' | 'updateExamSetting' | 'updateForm' | 'updateFormSetting' | 'updateFormTheme' | 'updateFormView' | 'updateManuallyCloseRule' | 'updateOpensearchQuery' | 'updatePredefinedChoicesSet' | 'updateSmsSignature' | 'updateSmsTemplate' | 'updateTable' | 'updateTableEntry' | 'updateTableEntryComment' | 'updateTableEntryViaPost' | 'updateTableView' | 'uploadEntryAttachment' | 'uploadFormImage' | 'uploadImportFile' | 'uploadUserLicenseAttachment' | 'verifyRedirectParams';
|
|
4
|
+
export type OperationId = 'aggregateEntries' | 'aggregateFormViewEntries' | 'aggregateTableEntries' | 'aggregateTableViewEntries' | 'aggregateTradeTransactions' | 'checkFormFieldData' | 'checkTableFieldData' | 'copyForm' | 'countEntries' | 'countEntriesAcrossForms' | 'countFormViewEntries' | 'countTableEntries' | 'countTableViewEntries' | 'createCheckinCampaign' | 'createEmailTask' | 'createEntriesBatch' | 'createEntry' | 'createEntryComment' | 'createEntryImport' | 'createEntryLegacy' | 'createFillFormEntry' | 'createFillViewEntry' | 'createFolder' | 'createForm' | 'createFormView' | 'createFormWebhook' | 'createNotificationRule' | 'createOpensearchQuery' | 'createPredefinedChoicesSet' | 'createRoutine' | 'createSmsSignature' | 'createSmsTask' | 'createSmsTemplate' | 'createTable' | 'createTableEntry' | 'createTableEntryComment' | 'createTableView' | 'createTemplateUsage' | 'createWeixinOauthSession' | 'deleteCheckinCampaign' | 'deleteEntry' | 'deleteEntryComment' | 'deleteForm' | 'deleteFormView' | 'deleteFormWebhook' | 'deleteNotificationRule' | 'deletePredefinedChoicesSet' | 'deleteRoutine' | 'deleteSmsSignature' | 'deleteSmsTemplate' | 'deleteTable' | 'deleteTableEntry' | 'deleteTableEntryComment' | 'deleteTableView' | 'estimateEmailTask' | 'estimateEmailTaskResend' | 'estimateSmsTask' | 'estimateSmsTaskChange' | 'estimateSmsTaskResend' | 'getBillingAccount' | 'getCheckinCampaign' | 'getCurrentUser' | 'getEmailTask' | 'getEntry' | 'getEntryImport' | 'getEntryStats' | 'getEvaluationSetting' | 'getExamSetting' | 'getFieldType' | 'getFillFormPage' | 'getFillViewPage' | 'getFolder' | 'getForm' | 'getFormSetting' | 'getFormView' | 'getManuallyCloseRule' | 'getNotificationRule' | 'getOpensearchQuery' | 'getRoutine' | 'getSmsTask' | 'getTable' | 'getTableEntry' | 'getTableView' | 'getTradeMerchant' | 'listBillingAccountInvoices' | 'listBillingAccountPaidFeatures' | 'listBillingAccountPaymentHistories' | 'listBillingAccountUsers' | 'listCheckinCampaigns' | 'listContacts' | 'listEmailTaskActivities' | 'listEmailTasks' | 'listEntries' | 'listEntryComments' | 'listExtendedAttributes' | 'listFieldRules' | 'listFieldTypes' | 'listFolders' | 'listFormCooperators' | 'listFormViewEntries' | 'listFormViews' | 'listForms' | 'listMyFilledForms' | 'listMySubmittedEntries' | 'listNotificationRuleNotifications' | 'listNotificationRules' | 'listOpensearchQueries' | 'listOpensearchQuerySuggestions' | 'listPredefinedChoicesSets' | 'listRoutineRuns' | 'listRoutines' | 'listSmsAuditStatuses' | 'listSmsSignatures' | 'listSmsTaskActivities' | 'listSmsTasks' | 'listSmsTemplates' | 'listSmtpAccounts' | 'listTableEntries' | 'listTableEntryComments' | 'listTableViewEntries' | 'listTableViews' | 'listTables' | 'listTradePayouts' | 'listTradeRefunds' | 'listTradeTransactions' | 'moveFormToFolder' | 'moveTableToFolder' | 'patchEntriesBatch' | 'pauseRoutine' | 'previewFormFieldTypeChange' | 'previewTableFieldTypeChange' | 'replaceEntry' | 'replaceTableEntry' | 'resendEmailTask' | 'resendSmsTask' | 'resumeRoutine' | 'runRoutine' | 'searchEntriesAcrossForms' | 'searchMySubmittedEntries' | 'sendSmsTask' | 'summarizeEntries' | 'summarizeFormViewEntries' | 'summarizeTableEntries' | 'summarizeTableViewEntries' | 'updateAccessPolicy' | 'updateCheckinCampaign' | 'updateEntry' | 'updateEntryComment' | 'updateEntryViaPost' | 'updateEvaluationSetting' | 'updateExamSetting' | 'updateForm' | 'updateFormSetting' | 'updateFormTheme' | 'updateFormView' | 'updateManuallyCloseRule' | 'updateNotificationRule' | 'updateOpensearchQuery' | 'updatePredefinedChoicesSet' | 'updateRoutine' | 'updateSmsSignature' | 'updateSmsTask' | 'updateSmsTemplate' | 'updateTable' | 'updateTableEntry' | 'updateTableEntryComment' | 'updateTableEntryViaPost' | 'updateTableView' | 'uploadEntryAttachment' | 'uploadFormImage' | 'uploadImportFile' | 'uploadUserLicenseAttachment' | 'verifyRedirectParams';
|
|
5
5
|
export declare const OPERATIONS: {
|
|
6
6
|
readonly [id in OperationId]: Operation;
|
|
7
7
|
};
|