@jinshuju/cli 0.26.0 → 0.27.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.
@@ -1,5 +1,5 @@
1
1
  import { FILTER_OPTION, FILTERS_OPTION, JSON_OPTION, MINE_OPTION, PAGINATION_OPTIONS, SORT_OPTION, UsageError } from '../options.js';
2
- import { FOLDER_OPTION, LISTING, filters, given, keywords, overriding, paging, payload, refuseWithMine, requiredOption, sort } from './shared.js';
2
+ import { FOLDER_OPTION, LISTING, PREVIEW_OPTION, YES_OPTION, filters, given, keywords, overriding, paging, payload, refuseWithMine, requiredOption, sort, trash } from './shared.js';
3
3
  import { validateContainerPayload } from '../payload.js';
4
4
  import { bodyChoices, call } from '../spec.js';
5
5
  import { readableSize, upload, uploadedId, uploadFormImage } from './upload.js';
@@ -423,8 +423,9 @@ export const FORM = [
423
423
  {
424
424
  path: ['form', 'edit'],
425
425
  summary: 'Edit a form',
426
- description: 'The payload carries the operations to apply: name, description, setting, and fields as ' +
427
- '{add, update, update_choices, remove}. Only what is named changes. `form create --help` ' +
426
+ description: 'The payload carries the operations to apply: name, description, setting, layout, and fields as ' +
427
+ '{add, update, update_choices, remove}. Only what is named changes. Switching layout keeps every ' +
428
+ 'field; the card layout hides the ones it cannot show and the classic layout shows them again. `form create --help` ' +
428
429
  'shows what setting takes, the close rules among it.',
429
430
  args: [{ name: 'form', required: true, description: 'Form token' }],
430
431
  options: [JSON_OPTION],
@@ -460,6 +461,7 @@ export const FORM = [
460
461
  'jinshuju form edit Kp7mQ2 --json \'{"name":"2026 活动报名"}\'',
461
462
  'jinshuju form edit Kp7mQ2 --json \'{"setting":{"daily_repeat_close_rule":{"time_periods":[{"start_time":{"hour":11,"minute":0},"end_time":{"hour":12,"minute":40}}]}}}\'',
462
463
  'jinshuju form edit Kp7mQ2 --json \'{"setting":{"wording":{"submit":"立即报名"}}}\'',
464
+ 'jinshuju form edit Kp7mQ2 --json \'{"layout":"card"}\'',
463
465
  'jinshuju form edit Kp7mQ2 --json \'{"exam_setting":{"limited_time":30}}\''
464
466
  ]
465
467
  },
@@ -496,6 +498,18 @@ export const FORM = [
496
498
  }),
497
499
  examples: ['jinshuju form move Kp7mQ2 --folder Fd2xK8', 'jinshuju form move Kp7mQ2']
498
500
  },
501
+ {
502
+ path: ['form', 'delete'],
503
+ summary: 'Move forms to the trash',
504
+ description: 'Each form goes to the trash with its entries, and can be restored from there in the web app ' +
505
+ 'within 2 years. Up to 20 at a time, each deleted on its own: one refused leaves the others ' +
506
+ 'deleted, and the error says which went and which did not. --preview reads what deleting each ' +
507
+ 'would take with it instead, and deletes nothing.',
508
+ args: [{ name: 'form', required: true, variadic: true, description: 'Form token' }],
509
+ options: [YES_OPTION, PREVIEW_OPTION],
510
+ run: (input, client) => trash(client, input, 'form'),
511
+ examples: ['jinshuju form delete Kp7mQ2 Hx3pL9 --preview', 'jinshuju form delete Kp7mQ2 Hx3pL9 --yes']
512
+ },
499
513
  {
500
514
  path: ['form', 'theme', 'set'],
501
515
  summary: "Set a form's theme",
@@ -36,12 +36,7 @@ export const RESOURCES = [
36
36
  },
37
37
  { name: 'account', summary: 'Account, members, invoices and what the account paid' },
38
38
  { name: 'folder', summary: 'Manage folders' },
39
- {
40
- name: 'form',
41
- summary: 'Manage forms',
42
- note: 'There is no delete, on purpose: removing a form takes its entries with it, so it is ' +
43
- 'left to the web app, where the person doing it can see what they are about to lose.'
44
- },
39
+ { name: 'form', summary: 'Manage forms' },
45
40
  { name: 'table', summary: 'Manage tables' },
46
41
  { name: 'field', summary: 'Manage fields' },
47
42
  { name: 'view', summary: 'Manage views' },
@@ -50,7 +50,9 @@ const ROUTINE_PAYLOAD = [
50
50
  ' "include_bulk": false }',
51
51
  ' on created runs for each new entry',
52
52
  ' on updated runs when one of field_codes changes: 1 to 10 api_codes;',
53
- ' formula and linked (关联) fields cannot be watched',
53
+ ' formula and form association (表单关联) fields cannot be',
54
+ " watched; a table's relation, lookup and rollup columns can,",
55
+ ' and a lookup or rollup fires when its linked rows change it',
54
56
  ' on matched runs when an entry comes to meet scope_conditions (required)',
55
57
  ' scope_conditions narrow created and updated too; updated reads the values',
56
58
  ' after the change. The source joins objects by itself.',
@@ -1,4 +1,4 @@
1
- import type { HttpRequest } from '../http.js';
1
+ import type { HttpClient, HttpRequest } from '../http.js';
2
2
  import { type OptionSpec } from '../options.js';
3
3
  import { type CallParts, type OperationId } from '../spec.js';
4
4
  import type { CommandInput, Pagination } from './types.js';
@@ -34,7 +34,22 @@ export declare function sortRules(input: CommandInput): {
34
34
  * — so the confirmation is a flag, and leaving it out is the safe outcome
35
35
  * rather than a question nobody is there to answer.
36
36
  */
37
- export declare function confirmed(input: CommandInput, what: string): void;
37
+ export declare function confirmed(input: CommandInput, what: string, outcome?: string): void;
38
+ /**
39
+ * Moves each form or table named to the trash, one request apiece, a few at a
40
+ * time (`eachToken`). Every one is tried, so one refused does not leave the rest
41
+ * standing, and the error lists what went beside what did not: read as
42
+ * all-or-nothing, it would invite the moved ones to be deleted again or the
43
+ * refused ones to be taken for done. It exits the way the first failure would
44
+ * have, and under `--output json` its body carries every token's refusal, not
45
+ * the first one's alone.
46
+ */
47
+ export declare function trash(client: HttpClient, input: CommandInput, kind: 'form' | 'table'): Promise<{
48
+ deleted: string[];
49
+ } | {
50
+ previews: unknown[];
51
+ failures?: unknown[];
52
+ }>;
38
53
  /**
39
54
  * Drops the keys an optional flag left undefined. JSON.stringify would drop
40
55
  * them on the wire anyway, but a body that carries them reads as though the
@@ -54,6 +69,8 @@ export declare function overriding(payload: Record<string, unknown>, flags: Reco
54
69
  /** A write that names one thing still sends the API a list of one. */
55
70
  export declare function one(value: unknown): unknown[];
56
71
  export declare const YES_OPTION: OptionSpec;
72
+ /** `form delete` and `table delete`'s look before they delete. */
73
+ export declare const PREVIEW_OPTION: OptionSpec;
57
74
  export declare const FOLDER_OPTION: OptionSpec;
58
75
  /**
59
76
  * `--mine` is a different range, not a narrower one: it reads what the caller
@@ -1,3 +1,4 @@
1
+ import { HttpError } from '../errors.js';
1
2
  import { FILTER_OPTION, FILTERS_OPTION, UsageError, parseFilter, parseSort, resolveContainer } from '../options.js';
2
3
  import { call } from '../spec.js';
3
4
  import { isRecord } from '../values.js';
@@ -63,9 +64,105 @@ export function sortRules(input) {
63
64
  * — so the confirmation is a flag, and leaving it out is the safe outcome
64
65
  * rather than a question nobody is there to answer.
65
66
  */
66
- export function confirmed(input, what) {
67
+ export function confirmed(input, what, outcome = 'is permanent') {
67
68
  if (!input.options.yes)
68
- throw new UsageError(`${what} is permanent; pass --yes to go ahead`);
69
+ throw new UsageError(`${what} ${outcome}; pass --yes to go ahead`);
70
+ }
71
+ /**
72
+ * How many forms or tables one delete takes. A delete that has to be confirmed
73
+ * first, as Jiri's are, reads what each one would take with it before asking,
74
+ * and one confirmation covers at most this many: taking more would read ahead
75
+ * for batches nobody is asked about yet.
76
+ */
77
+ const TRASH_BATCH = 20;
78
+ /**
79
+ * How many of a batch's requests are in flight at once. Each form or table is a
80
+ * request of its own, and a batch of 20 sent one after another took seconds; a
81
+ * few at a time stays well inside what the API takes from one caller.
82
+ */
83
+ const TRASH_CONCURRENCY = 5;
84
+ /**
85
+ * Sends one request per token and answers every outcome, in the order given. The
86
+ * first goes alone, so a session that has to refresh its token does so once
87
+ * rather than from several requests at the same moment; the rest a few at a time.
88
+ */
89
+ async function eachToken(tokens, send) {
90
+ const settle = (token) => send(token).then((value) => ({ token, value }), (error) => ({ token, error: error }));
91
+ const outcomes = [await settle(tokens[0])];
92
+ let next = 1;
93
+ const worker = async () => {
94
+ while (next < tokens.length) {
95
+ const index = next++;
96
+ outcomes[index] = await settle(tokens[index]);
97
+ }
98
+ };
99
+ await Promise.all(Array.from({ length: Math.min(TRASH_CONCURRENCY, tokens.length - 1) }, worker));
100
+ return outcomes;
101
+ }
102
+ /**
103
+ * Moves each form or table named to the trash, one request apiece, a few at a
104
+ * time (`eachToken`). Every one is tried, so one refused does not leave the rest
105
+ * standing, and the error lists what went beside what did not: read as
106
+ * all-or-nothing, it would invite the moved ones to be deleted again or the
107
+ * refused ones to be taken for done. It exits the way the first failure would
108
+ * have, and under `--output json` its body carries every token's refusal, not
109
+ * the first one's alone.
110
+ */
111
+ export async function trash(client, input, kind) {
112
+ if (input.rest.length > TRASH_BATCH) {
113
+ throw new UsageError(`${kind} delete takes at most ${TRASH_BATCH} ${kind}s at a time, got ${input.rest.length}; ` +
114
+ 'delete the rest in another call once these are done');
115
+ }
116
+ if (input.options.preview) {
117
+ if (input.options.yes)
118
+ throw new UsageError('--preview and --yes are alternatives, not both');
119
+ return previewTrash(client, input, kind);
120
+ }
121
+ const many = input.rest.length > 1;
122
+ confirmed(input, `Deleting ${kind}${many ? 's' : ''} ${input.rest.join(', ')}`, `moves ${many ? 'them' : 'it'} to the trash`);
123
+ const outcomes = await eachToken(input.rest, (token) => client.request(kind === 'form'
124
+ ? call('deleteForm', { path: { form_token: token } })
125
+ : call('deleteTable', { path: { table_token: token } })));
126
+ const deleted = outcomes.flatMap((outcome) => ('value' in outcome ? [outcome.token] : []));
127
+ const failures = outcomes.flatMap((outcome) => ('error' in outcome ? [outcome] : []));
128
+ if (failures.length === 0)
129
+ return { deleted };
130
+ const lines = failures.map(({ token, error }) => {
131
+ const outcome = error instanceof HttpError ? 'not deleted' : 'may or may not be deleted';
132
+ return ` ${token} ${outcome}: ${error.message.replaceAll('\n', '\n ')}`;
133
+ });
134
+ const first = failures[0].error;
135
+ const body = {
136
+ deleted,
137
+ failures: failures.map(({ token, error }) => error instanceof HttpError ? { token, status: error.status, body: error.body } : { token, message: error.message })
138
+ };
139
+ throw new Error([`moved to the trash: ${deleted.join(', ') || 'none'}`, ...lines].join('\n'), {
140
+ cause: first instanceof HttpError ? new HttpError(first.message, first.status, body) : first
141
+ });
142
+ }
143
+ /**
144
+ * What deleting each form or table would take with it, nothing deleted, a few at
145
+ * a time (`eachToken`). A token that cannot be read is listed under `failures`
146
+ * beside the ones that could, so one wrong token does not hide the rest; only
147
+ * when none could be read does it fail, as its first failure would. Both keep
148
+ * the order given.
149
+ */
150
+ async function previewTrash(client, input, kind) {
151
+ const outcomes = await eachToken(input.rest, (token) => client.request(kind === 'form'
152
+ ? call('previewFormDeletion', { path: { form_token: token } })
153
+ : call('previewTableDeletion', { path: { table_token: token } })));
154
+ const previews = outcomes.flatMap((outcome) => ('value' in outcome ? [outcome.value] : []));
155
+ const failures = outcomes.flatMap((outcome) => ('error' in outcome ? [outcome] : []));
156
+ if (previews.length === 0)
157
+ throw failures[0].error;
158
+ if (failures.length === 0)
159
+ return { previews };
160
+ return {
161
+ previews,
162
+ failures: failures.map(({ token, error }) => error instanceof HttpError
163
+ ? { token, status: error.status, message: error.message }
164
+ : { token, message: error.message })
165
+ };
69
166
  }
70
167
  /**
71
168
  * Drops the keys an optional flag left undefined. JSON.stringify would drop
@@ -92,6 +189,12 @@ export function one(value) {
92
189
  return Array.isArray(value) ? value : [value];
93
190
  }
94
191
  export const YES_OPTION = { name: '--yes', type: 'boolean', description: 'Confirm the deletion' };
192
+ /** `form delete` and `table delete`'s look before they delete. */
193
+ export const PREVIEW_OPTION = {
194
+ name: '--preview',
195
+ type: 'boolean',
196
+ description: 'Show what deleting each would take with it, and delete nothing'
197
+ };
95
198
  export const FOLDER_OPTION = {
96
199
  name: '--folder',
97
200
  type: 'string',
@@ -1,6 +1,6 @@
1
1
  import { FILTER_OPTION, FILTERS_OPTION, JSON_OPTION, PAGINATION_OPTIONS, SORT_OPTION } from '../options.js';
2
2
  import { bodyChoices, call } from '../spec.js';
3
- import { FOLDER_OPTION, LISTING, filters, keywords, overriding, paging, payload, sort } from './shared.js';
3
+ import { FOLDER_OPTION, LISTING, PREVIEW_OPTION, YES_OPTION, filters, keywords, overriding, paging, payload, sort, trash } from './shared.js';
4
4
  import { validateContainerPayload } from '../payload.js';
5
5
  /**
6
6
  * The field types a table column may be, which is a third of what a form takes.
@@ -79,6 +79,18 @@ export const TABLE = [
79
79
  }),
80
80
  examples: ['jinshuju table move Vn4xR8 --folder Nf7mDC', 'jinshuju table move Vn4xR8']
81
81
  },
82
+ {
83
+ path: ['table', 'delete'],
84
+ summary: 'Move tables to the trash',
85
+ description: 'Each table goes to the trash with its entries, and can be restored from there in the web app ' +
86
+ 'within 2 years. Up to 20 at a time, each deleted on its own: one refused leaves the others ' +
87
+ 'deleted, and the error says which went and which did not. --preview reads what deleting each ' +
88
+ 'would take with it instead, and deletes nothing.',
89
+ args: [{ name: 'table', required: true, variadic: true, description: 'Table token' }],
90
+ options: [YES_OPTION, PREVIEW_OPTION],
91
+ run: (input, client) => trash(client, input, 'table'),
92
+ examples: ['jinshuju table delete Vn4xR8 Qm5tW2 --preview', 'jinshuju table delete Vn4xR8 Qm5tW2 --yes']
93
+ },
82
94
  {
83
95
  path: ['table', 'edit'],
84
96
  summary: 'Edit a table',
@@ -3,7 +3,7 @@ import type { Operation, Schema } from '../spec.js';
3
3
  export declare const BASE_PATH = "/api/v1";
4
4
  /** The day spec/openapi.yaml was fetched from the API, when scripts/fetch-spec.mjs recorded it. */
5
5
  export declare const SPEC_DATE: string | undefined;
6
- 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' | 'createMemoryNote' | 'createMessageChannel' | 'createNotificationRule' | 'createOpensearchQuery' | 'createRoutine' | 'createSmsSignature' | 'createSmsTask' | 'createSmsTemplate' | 'createTable' | 'createTableEntry' | 'createTableEntryComment' | 'createTableView' | 'createTemplateUsage' | 'createWeixinOauthSession' | 'deleteCheckinCampaign' | 'deleteEntry' | 'deleteEntryComment' | 'deleteForm' | 'deleteFormView' | 'deleteFormWebhook' | 'deleteMemoryNotes' | 'deleteMessageChannel' | 'deleteNotificationRule' | 'deleteRoutine' | 'deleteSmsSignature' | 'deleteSmsTemplate' | 'deleteTable' | 'deleteTableEntry' | 'deleteTableEntryComment' | 'deleteTableView' | 'estimateEmailTask' | 'estimateEmailTaskResend' | 'estimateMessage' | 'estimateSmsTask' | 'estimateSmsTaskChange' | 'estimateSmsTaskResend' | 'exportRemainingVouchers' | 'getBillingAccount' | 'getCheckinCampaign' | 'getCurrentUser' | 'getEmailTask' | 'getEntry' | 'getEntryImport' | 'getEntryStateFlow' | 'getEntryStats' | 'getEvaluationSetting' | 'getExamSetting' | 'getFieldType' | 'getFillFormPage' | 'getFillViewPage' | 'getFolder' | 'getForm' | 'getFormSetting' | 'getFormView' | 'getManuallyCloseRule' | 'getMemory' | 'getMessage' | 'getMessageChannel' | 'getNotificationRule' | 'getOpensearchQuery' | 'getPublishedArtifact' | 'getQuickpaySetting' | 'getRoutine' | 'getSmsTask' | 'getTable' | 'getTableEntry' | 'getTableView' | 'getTradeMerchant' | 'getWheelFortune' | 'listArtifacts' | 'listBillingAccountInvoices' | 'listBillingAccountPaidFeatures' | 'listBillingAccountPaymentHistories' | 'listBillingAccountUsers' | 'listCheckinCampaigns' | 'listContacts' | 'listEmailTaskActivities' | 'listEmailTasks' | 'listEntries' | 'listEntryComments' | 'listExtendedAttributes' | 'listFieldRules' | 'listFieldTypes' | 'listFolders' | 'listFormConditionTriggerableFields' | 'listFormCooperators' | 'listFormViewEntries' | 'listFormViews' | 'listForms' | 'listMessageChannels' | 'listMessages' | 'listMyFilledForms' | 'listMySubmittedEntries' | 'listNotificationRuleNotifications' | 'listNotificationRules' | 'listOpensearchQueries' | 'listOpensearchQuerySuggestions' | 'listRoutineRuns' | 'listRoutines' | 'listSmsAuditStatuses' | 'listSmsSignatures' | 'listSmsTaskActivities' | 'listSmsTasks' | 'listSmsTemplates' | 'listSmtpAccounts' | 'listTableConditionTriggerableFields' | 'listTableEntries' | 'listTableEntryComments' | 'listTableViewEntries' | 'listTableViews' | 'listTables' | 'listTradePayouts' | 'listTradeRefunds' | 'listTradeTransactions' | 'moveFormToFolder' | 'moveTableToFolder' | 'patchEntriesBatch' | 'pauseRoutine' | 'prepareEntryAttachmentUpload' | 'prepareFormImageUpload' | 'prepareGoodsDeliverableAttachmentUpload' | 'prepareImportFileUpload' | 'previewFormFieldTypeChange' | 'previewTableFieldTypeChange' | 'replaceEntry' | 'replaceTableEntry' | 'resendEmailTask' | 'resendSmsTask' | 'resumeRoutine' | 'runRoutine' | 'searchEntriesAcrossForms' | 'searchMySubmittedEntries' | 'sendMessage' | 'sendSmsTask' | 'summarizeEntries' | 'summarizeFormViewEntries' | 'summarizeTableEntries' | 'summarizeTableViewEntries' | 'updateAccessPolicy' | 'updateCheckinCampaign' | 'updateEntry' | 'updateEntryComment' | 'updateEntryStateFlow' | 'updateEntryViaPost' | 'updateEvaluationSetting' | 'updateExamSetting' | 'updateForm' | 'updateFormSetting' | 'updateFormTheme' | 'updateFormView' | 'updateManuallyCloseRule' | 'updateMemoryNote' | 'updateNotificationRule' | 'updateOpensearchQuery' | 'updatePublishedArtifact' | 'updateQuickpaySetting' | 'updateRoutine' | 'updateSmsSignature' | 'updateSmsTask' | 'updateSmsTemplate' | 'updateTable' | 'updateTableEntry' | 'updateTableEntryComment' | 'updateTableEntryViaPost' | 'updateTableView' | 'updateWheelFortune' | 'uploadEntryAttachment' | 'uploadFormImage' | 'uploadGoodsDeliverableAttachment' | 'uploadImportFile' | 'uploadUserLicenseAttachment' | 'verifyRedirectParams';
6
+ 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' | 'createFormCooperators' | 'createFormView' | 'createFormWebhook' | 'createMemoryNote' | 'createMessageChannel' | 'createNotificationRule' | 'createOpenResult' | 'createOpensearchQuery' | 'createRoutine' | 'createSmsSignature' | 'createSmsTask' | 'createSmsTemplate' | 'createTable' | 'createTableEntry' | 'createTableEntryComment' | 'createTableView' | 'createTemplateUsage' | 'createWeixinOauthSession' | 'deleteCheckinCampaign' | 'deleteEntry' | 'deleteEntryComment' | 'deleteForm' | 'deleteFormView' | 'deleteFormWebhook' | 'deleteMemoryNotes' | 'deleteMessageChannel' | 'deleteNotificationRule' | 'deleteOpenResult' | 'deleteRoutine' | 'deleteSmsSignature' | 'deleteSmsTemplate' | 'deleteTable' | 'deleteTableEntry' | 'deleteTableEntryComment' | 'deleteTableView' | 'estimateEmailTask' | 'estimateEmailTaskResend' | 'estimateMessage' | 'estimateSmsTask' | 'estimateSmsTaskChange' | 'estimateSmsTaskResend' | 'exportRemainingVouchers' | 'getBillingAccount' | 'getCheckinCampaign' | 'getCurrentUser' | 'getEmailTask' | 'getEntry' | 'getEntryImport' | 'getEntryStateFlow' | 'getEntryStats' | 'getEvaluationSetting' | 'getExamSetting' | 'getFieldType' | 'getFillFormPage' | 'getFillViewPage' | 'getFolder' | 'getForm' | 'getFormSetting' | 'getFormView' | 'getManuallyCloseRule' | 'getMemory' | 'getMessage' | 'getMessageChannel' | 'getNotificationRule' | 'getOpenResult' | 'getOpensearchQuery' | 'getPublishedArtifact' | 'getQuickpaySetting' | 'getRoutine' | 'getSmsTask' | 'getTable' | 'getTableEntry' | 'getTableView' | 'getTradeMerchant' | 'getUserFormSetting' | 'getWheelFortune' | 'listArtifactDataSources' | 'listArtifacts' | 'listBillingAccountInvoices' | 'listBillingAccountPaidFeatures' | 'listBillingAccountPaymentHistories' | 'listBillingAccountUsers' | 'listCheckinCampaigns' | 'listContacts' | 'listEmailTaskActivities' | 'listEmailTasks' | 'listEntries' | 'listEntryComments' | 'listExtendedAttributes' | 'listFieldRules' | 'listFieldTypes' | 'listFolders' | 'listFormConditionTriggerableFields' | 'listFormCooperators' | 'listFormPublishedArtifacts' | 'listFormViewEntries' | 'listFormViews' | 'listForms' | 'listMessageChannels' | 'listMessages' | 'listMyFilledForms' | 'listMySubmittedEntries' | 'listNotificationRuleNotifications' | 'listNotificationRules' | 'listOpenResults' | 'listOpensearchQueries' | 'listOpensearchQuerySuggestions' | 'listRedirectRules' | 'listRoutineRuns' | 'listRoutines' | 'listSmsAuditStatuses' | 'listSmsSignatures' | 'listSmsTaskActivities' | 'listSmsTasks' | 'listSmsTemplates' | 'listSmtpAccounts' | 'listTableConditionTriggerableFields' | 'listTableEntries' | 'listTableEntryComments' | 'listTablePublishedArtifacts' | 'listTableViewEntries' | 'listTableViews' | 'listTables' | 'listTradePayouts' | 'listTradeRefunds' | 'listTradeTransactions' | 'moveFormToFolder' | 'moveTableToFolder' | 'patchEntriesBatch' | 'pauseRoutine' | 'prepareEntryAttachmentUpload' | 'prepareFormImageUpload' | 'prepareGoodsDeliverableAttachmentUpload' | 'prepareImportFileUpload' | 'previewFormDeletion' | 'previewFormFieldTypeChange' | 'previewTableDeletion' | 'previewTableFieldTypeChange' | 'replaceEntry' | 'replaceTableEntry' | 'resendEmailTask' | 'resendSmsTask' | 'restoreFormPublishedArtifactDataGrant' | 'restoreTablePublishedArtifactDataGrant' | 'resumeRoutine' | 'revokeFormPublishedArtifactDataGrant' | 'revokeTablePublishedArtifactDataGrant' | 'runRoutine' | 'searchEntriesAcrossForms' | 'searchMySubmittedEntries' | 'sendMessage' | 'sendSmsTask' | 'summarizeEntries' | 'summarizeFormViewEntries' | 'summarizeTableEntries' | 'summarizeTableViewEntries' | 'updateAccessPolicy' | 'updateCheckinCampaign' | 'updateEntry' | 'updateEntryComment' | 'updateEntryStateFlow' | 'updateEntryViaPost' | 'updateEvaluationSetting' | 'updateExamSetting' | 'updateForm' | 'updateFormSetting' | 'updateFormTheme' | 'updateFormView' | 'updateManuallyCloseRule' | 'updateMemoryNote' | 'updateNotificationRule' | 'updateOpenResult' | 'updateOpensearchQuery' | 'updatePublishedArtifact' | 'updateQuickpaySetting' | 'updateRoutine' | 'updateSmsSignature' | 'updateSmsTask' | 'updateSmsTemplate' | 'updateTable' | 'updateTableEntry' | 'updateTableEntryComment' | 'updateTableEntryViaPost' | 'updateTableView' | 'updateUserFormSetting' | 'updateWheelFortune' | 'uploadEntryAttachment' | 'uploadFormImage' | 'uploadGoodsDeliverableAttachment' | 'uploadImportFile' | 'uploadUserLicenseAttachment' | 'verifyRedirectParams';
7
7
  export declare const OPERATIONS: {
8
8
  readonly [id in OperationId]: Operation;
9
9
  };