@apotech-os/cli 7.3.0 → 7.4.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/dist/index.js +219 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24313,6 +24313,70 @@ var INTEGRATION_CATALOG = {
|
|
|
24313
24313
|
}
|
|
24314
24314
|
}
|
|
24315
24315
|
},
|
|
24316
|
+
"google-sheets": {
|
|
24317
|
+
displayName: "Google Sheets",
|
|
24318
|
+
description: "Lecture et ajout de lignes dans les Google Sheets partag\xE9s avec le compte de service de la plateforme.",
|
|
24319
|
+
authKind: "service_account",
|
|
24320
|
+
events: [],
|
|
24321
|
+
hasWebhooks: false,
|
|
24322
|
+
supportsGenericRequest: true,
|
|
24323
|
+
scopeCatalog: [
|
|
24324
|
+
{
|
|
24325
|
+
name: "read_spreadsheets",
|
|
24326
|
+
label: "Lire les Google Sheets partag\xE9s",
|
|
24327
|
+
description: "Consulter le titre, les onglets et les valeurs des fichiers partag\xE9s avec le compte de service de la plateforme."
|
|
24328
|
+
},
|
|
24329
|
+
{
|
|
24330
|
+
name: "write_spreadsheets",
|
|
24331
|
+
label: "\xC9crire dans les Google Sheets partag\xE9s",
|
|
24332
|
+
description: "Ajouter des lignes et mettre \xE0 jour des valeurs dans les fichiers partag\xE9s en \xC9diteur avec le compte de service. Ni suppression, ni effacement, ni changement de structure."
|
|
24333
|
+
}
|
|
24334
|
+
],
|
|
24335
|
+
actions: {
|
|
24336
|
+
appendValues: {
|
|
24337
|
+
description: "Append rows after the last non-empty row of the table found in `range` (rows are INSERTED, never written over). valueInputOption defaults to USER_ENTERED (dates and numbers parsed as if typed); RAW stores strings as-is. Returns where the rows landed. Access comes from Google sharing: the file must be shared with the service account (`getServiceAccount`) \u2014 as Viewer to read, Editor to write. An unshared file fails with 403 SPREADSHEET_NOT_SHARED (details: serviceAccountEmail, requiredRole); a renamed or deleted tab with 400 INVALID_RANGE.",
|
|
24338
|
+
destructive: true,
|
|
24339
|
+
agentExposable: false,
|
|
24340
|
+
requiresApproval: false,
|
|
24341
|
+
scopes: ["write_spreadsheets"]
|
|
24342
|
+
},
|
|
24343
|
+
getServiceAccount: {
|
|
24344
|
+
description: "Get the email address of the platform service account \u2014 the address a Google Sheet must be shared with before this connector can read (Viewer) or write (Editor) it. Calls nothing at Google.",
|
|
24345
|
+
destructive: false,
|
|
24346
|
+
agentExposable: true,
|
|
24347
|
+
requiresApproval: false,
|
|
24348
|
+
scopes: []
|
|
24349
|
+
},
|
|
24350
|
+
getSpreadsheet: {
|
|
24351
|
+
description: "Get a spreadsheet's title and its tabs (sheetId = the `gid` in the tab URL, title, row and column counts). Access comes from Google sharing: the file must be shared with the service account (`getServiceAccount`) \u2014 as Viewer to read, Editor to write. An unshared file fails with 403 SPREADSHEET_NOT_SHARED (details: serviceAccountEmail, requiredRole); a renamed or deleted tab with 400 INVALID_RANGE.",
|
|
24352
|
+
destructive: false,
|
|
24353
|
+
agentExposable: true,
|
|
24354
|
+
requiresApproval: false,
|
|
24355
|
+
scopes: ["read_spreadsheets"]
|
|
24356
|
+
},
|
|
24357
|
+
readValues: {
|
|
24358
|
+
description: "Read the cell values of one A1 range (`'COMMANDE'!A1:Z`, `Sheet1`). Defaults: valueRenderOption UNFORMATTED_VALUE (numbers stay numbers), dateTimeRenderOption FORMATTED_STRING (dates as displayed), majorDimension ROWS. Trailing empty cells and rows are omitted by Google; an empty range returns `values: []`. Access comes from Google sharing: the file must be shared with the service account (`getServiceAccount`) \u2014 as Viewer to read, Editor to write. An unshared file fails with 403 SPREADSHEET_NOT_SHARED (details: serviceAccountEmail, requiredRole); a renamed or deleted tab with 400 INVALID_RANGE.",
|
|
24359
|
+
destructive: false,
|
|
24360
|
+
agentExposable: true,
|
|
24361
|
+
requiresApproval: false,
|
|
24362
|
+
scopes: ["read_spreadsheets"]
|
|
24363
|
+
},
|
|
24364
|
+
readValuesBatch: {
|
|
24365
|
+
description: "Read several A1 ranges of the same spreadsheet in ONE call (counts as one request against Google's 60 reads/minute quota). Same defaults as readValues; `valueRanges` follows the order of `ranges`. Access comes from Google sharing: the file must be shared with the service account (`getServiceAccount`) \u2014 as Viewer to read, Editor to write. An unshared file fails with 403 SPREADSHEET_NOT_SHARED (details: serviceAccountEmail, requiredRole); a renamed or deleted tab with 400 INVALID_RANGE.",
|
|
24366
|
+
destructive: false,
|
|
24367
|
+
agentExposable: true,
|
|
24368
|
+
requiresApproval: false,
|
|
24369
|
+
scopes: ["read_spreadsheets"]
|
|
24370
|
+
},
|
|
24371
|
+
updateValues: {
|
|
24372
|
+
description: "Overwrite the cells of one A1 range with `values` (cells outside the given grid are left untouched; nothing is cleared). valueInputOption defaults to USER_ENTERED. Access comes from Google sharing: the file must be shared with the service account (`getServiceAccount`) \u2014 as Viewer to read, Editor to write. An unshared file fails with 403 SPREADSHEET_NOT_SHARED (details: serviceAccountEmail, requiredRole); a renamed or deleted tab with 400 INVALID_RANGE.",
|
|
24373
|
+
destructive: true,
|
|
24374
|
+
agentExposable: false,
|
|
24375
|
+
requiresApproval: false,
|
|
24376
|
+
scopes: ["write_spreadsheets"]
|
|
24377
|
+
}
|
|
24378
|
+
}
|
|
24379
|
+
},
|
|
24316
24380
|
gorgias: {
|
|
24317
24381
|
displayName: "Gorgias",
|
|
24318
24382
|
description: "Customer support helpdesk \u2014 ticket views, conversations and tagging.",
|
|
@@ -34010,6 +34074,161 @@ var INTEGRATION_ACTION_SCHEMAS = {
|
|
|
34010
34074
|
}
|
|
34011
34075
|
}
|
|
34012
34076
|
},
|
|
34077
|
+
"google-sheets": {
|
|
34078
|
+
appendValues: {
|
|
34079
|
+
input: {
|
|
34080
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34081
|
+
type: "object",
|
|
34082
|
+
properties: {
|
|
34083
|
+
spreadsheetId: { type: "string", minLength: 1, pattern: "^[A-Za-z0-9_-]+$" },
|
|
34084
|
+
range: { type: "string", minLength: 1 },
|
|
34085
|
+
values: { minItems: 1, type: "array", items: { type: "array", items: {} } },
|
|
34086
|
+
valueInputOption: { type: "string", enum: ["USER_ENTERED", "RAW"] }
|
|
34087
|
+
},
|
|
34088
|
+
required: ["spreadsheetId", "range", "values"]
|
|
34089
|
+
},
|
|
34090
|
+
output: {
|
|
34091
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34092
|
+
type: "object",
|
|
34093
|
+
properties: { updatedRange: { type: "string" }, updatedRows: { type: "number" } },
|
|
34094
|
+
required: ["updatedRange", "updatedRows"],
|
|
34095
|
+
additionalProperties: false
|
|
34096
|
+
}
|
|
34097
|
+
},
|
|
34098
|
+
getServiceAccount: {
|
|
34099
|
+
input: { $schema: "http://json-schema.org/draft-07/schema#", type: "object", properties: {} },
|
|
34100
|
+
output: {
|
|
34101
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34102
|
+
type: "object",
|
|
34103
|
+
properties: { email: { type: "string" } },
|
|
34104
|
+
required: ["email"],
|
|
34105
|
+
additionalProperties: false
|
|
34106
|
+
}
|
|
34107
|
+
},
|
|
34108
|
+
getSpreadsheet: {
|
|
34109
|
+
input: {
|
|
34110
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34111
|
+
type: "object",
|
|
34112
|
+
properties: {
|
|
34113
|
+
spreadsheetId: { type: "string", minLength: 1, pattern: "^[A-Za-z0-9_-]+$" }
|
|
34114
|
+
},
|
|
34115
|
+
required: ["spreadsheetId"]
|
|
34116
|
+
},
|
|
34117
|
+
output: {
|
|
34118
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34119
|
+
type: "object",
|
|
34120
|
+
properties: {
|
|
34121
|
+
spreadsheetId: { type: "string" },
|
|
34122
|
+
title: { type: "string" },
|
|
34123
|
+
sheets: {
|
|
34124
|
+
type: "array",
|
|
34125
|
+
items: {
|
|
34126
|
+
type: "object",
|
|
34127
|
+
properties: {
|
|
34128
|
+
sheetId: { type: "number" },
|
|
34129
|
+
title: { type: "string" },
|
|
34130
|
+
rowCount: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
34131
|
+
columnCount: { anyOf: [{ type: "number" }, { type: "null" }] }
|
|
34132
|
+
},
|
|
34133
|
+
required: ["sheetId", "title", "rowCount", "columnCount"],
|
|
34134
|
+
additionalProperties: false
|
|
34135
|
+
}
|
|
34136
|
+
}
|
|
34137
|
+
},
|
|
34138
|
+
required: ["spreadsheetId", "title", "sheets"],
|
|
34139
|
+
additionalProperties: false
|
|
34140
|
+
}
|
|
34141
|
+
},
|
|
34142
|
+
readValues: {
|
|
34143
|
+
input: {
|
|
34144
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34145
|
+
type: "object",
|
|
34146
|
+
properties: {
|
|
34147
|
+
spreadsheetId: { type: "string", minLength: 1, pattern: "^[A-Za-z0-9_-]+$" },
|
|
34148
|
+
range: { type: "string", minLength: 1 },
|
|
34149
|
+
valueRenderOption: {
|
|
34150
|
+
type: "string",
|
|
34151
|
+
enum: ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]
|
|
34152
|
+
},
|
|
34153
|
+
dateTimeRenderOption: { type: "string", enum: ["SERIAL_NUMBER", "FORMATTED_STRING"] },
|
|
34154
|
+
majorDimension: { type: "string", enum: ["ROWS", "COLUMNS"] }
|
|
34155
|
+
},
|
|
34156
|
+
required: ["spreadsheetId", "range"]
|
|
34157
|
+
},
|
|
34158
|
+
output: {
|
|
34159
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34160
|
+
type: "object",
|
|
34161
|
+
properties: {
|
|
34162
|
+
range: { type: "string" },
|
|
34163
|
+
values: { type: "array", items: { type: "array", items: {} } }
|
|
34164
|
+
},
|
|
34165
|
+
required: ["range", "values"],
|
|
34166
|
+
additionalProperties: false
|
|
34167
|
+
}
|
|
34168
|
+
},
|
|
34169
|
+
readValuesBatch: {
|
|
34170
|
+
input: {
|
|
34171
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34172
|
+
type: "object",
|
|
34173
|
+
properties: {
|
|
34174
|
+
spreadsheetId: { type: "string", minLength: 1, pattern: "^[A-Za-z0-9_-]+$" },
|
|
34175
|
+
ranges: {
|
|
34176
|
+
minItems: 1,
|
|
34177
|
+
maxItems: 100,
|
|
34178
|
+
type: "array",
|
|
34179
|
+
items: { type: "string", minLength: 1 }
|
|
34180
|
+
},
|
|
34181
|
+
valueRenderOption: {
|
|
34182
|
+
type: "string",
|
|
34183
|
+
enum: ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]
|
|
34184
|
+
},
|
|
34185
|
+
dateTimeRenderOption: { type: "string", enum: ["SERIAL_NUMBER", "FORMATTED_STRING"] },
|
|
34186
|
+
majorDimension: { type: "string", enum: ["ROWS", "COLUMNS"] }
|
|
34187
|
+
},
|
|
34188
|
+
required: ["spreadsheetId", "ranges"]
|
|
34189
|
+
},
|
|
34190
|
+
output: {
|
|
34191
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34192
|
+
type: "object",
|
|
34193
|
+
properties: {
|
|
34194
|
+
valueRanges: {
|
|
34195
|
+
type: "array",
|
|
34196
|
+
items: {
|
|
34197
|
+
type: "object",
|
|
34198
|
+
properties: {
|
|
34199
|
+
range: { type: "string" },
|
|
34200
|
+
values: { type: "array", items: { type: "array", items: {} } }
|
|
34201
|
+
},
|
|
34202
|
+
required: ["range", "values"],
|
|
34203
|
+
additionalProperties: false
|
|
34204
|
+
}
|
|
34205
|
+
}
|
|
34206
|
+
},
|
|
34207
|
+
required: ["valueRanges"],
|
|
34208
|
+
additionalProperties: false
|
|
34209
|
+
}
|
|
34210
|
+
},
|
|
34211
|
+
updateValues: {
|
|
34212
|
+
input: {
|
|
34213
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34214
|
+
type: "object",
|
|
34215
|
+
properties: {
|
|
34216
|
+
spreadsheetId: { type: "string", minLength: 1, pattern: "^[A-Za-z0-9_-]+$" },
|
|
34217
|
+
range: { type: "string", minLength: 1 },
|
|
34218
|
+
values: { minItems: 1, type: "array", items: { type: "array", items: {} } },
|
|
34219
|
+
valueInputOption: { type: "string", enum: ["USER_ENTERED", "RAW"] }
|
|
34220
|
+
},
|
|
34221
|
+
required: ["spreadsheetId", "range", "values"]
|
|
34222
|
+
},
|
|
34223
|
+
output: {
|
|
34224
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
34225
|
+
type: "object",
|
|
34226
|
+
properties: { updatedRange: { type: "string" }, updatedCells: { type: "number" } },
|
|
34227
|
+
required: ["updatedRange", "updatedCells"],
|
|
34228
|
+
additionalProperties: false
|
|
34229
|
+
}
|
|
34230
|
+
}
|
|
34231
|
+
},
|
|
34013
34232
|
gorgias: {
|
|
34014
34233
|
addTag: {
|
|
34015
34234
|
input: {
|