initiative-plugin-sdk 9.0.0 → 10.0.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 +36 -13
- package/dist/contract.d.ts +66 -24
- package/dist/contract.js +6 -4
- package/dist/contract.js.map +1 -1
- package/dist/plugin-api.generated.d.ts +467 -636
- package/dist/plugin-api.generated.js +129 -204
- package/dist/plugin-api.generated.js.map +1 -1
- package/dist/validate.d.ts +4 -3
- package/dist/validate.js +14 -6
- package/dist/validate.js.map +1 -1
- package/manifest.contract.json +118 -13
- package/package.json +2 -2
- package/schemas/plugin-api.json +6093 -6758
- package/schemas/plugin-manifest.json +122 -21
package/README.md
CHANGED
|
@@ -371,7 +371,7 @@ it is the deployment's decision.
|
|
|
371
371
|
### Fields, parts and actions
|
|
372
372
|
|
|
373
373
|
What a plug-in adds to the views and pages of Initiative's items: tasks,
|
|
374
|
-
calendar events,
|
|
374
|
+
calendar events, counters and posts
|
|
375
375
|
(`ITEM_KINDS`). Initiative draws all of it with its own components, so no
|
|
376
376
|
plug-in code runs in a reader's browser, and the community's managers place
|
|
377
377
|
it; a plug-in never places itself. Any plug-in may declare them, container or
|
|
@@ -398,35 +398,59 @@ filters, sorts and exports with no call to the plug-in.
|
|
|
398
398
|
| `datetime` | ISO 8601, with its offset |
|
|
399
399
|
| `link` | `{ url, text? }` |
|
|
400
400
|
| `badge` | `{ text, tone? }` |
|
|
401
|
-
| `
|
|
401
|
+
| `scale` | a number from 0 to 100, or `{ value, max }` |
|
|
402
402
|
| `checkbox` | a boolean |
|
|
403
|
+
| `url` | an address, as a string |
|
|
404
|
+
| `currency` | a number, in the field's `currency` |
|
|
405
|
+
| `select` | the `value` of one of the field's `options` |
|
|
406
|
+
| `multi_select` | a list of them |
|
|
407
|
+
| `user_reference` | a person: the install's own reference for them |
|
|
408
|
+
|
|
409
|
+
A `scale` is drawn as a number, stars or a bar. Written as `{ value, max }`, it
|
|
410
|
+
is kept as value ÷ max × 100: `{ value: 3, max: 5 }` is 60. A
|
|
411
|
+
`user_reference` is the `id` Initiative gives the person wherever the plug-in
|
|
412
|
+
reads one, such as a task's assignees or the community's roster.
|
|
403
413
|
|
|
404
414
|
```ts
|
|
405
415
|
fields: {
|
|
406
416
|
"demo.link": { name: { en: "Demo" }, kind: "link", on: ["task"], description: { en: "The task's demo" } },
|
|
407
417
|
"demo.opened": { name: { en: "Opened" }, kind: "number", on: ["task"] },
|
|
418
|
+
"demo.budget": { name: { en: "Budget" }, kind: "currency", currency: "EUR", on: ["task"] },
|
|
419
|
+
"demo.stage": {
|
|
420
|
+
name: { en: "Stage" },
|
|
421
|
+
kind: "select",
|
|
422
|
+
on: ["task"],
|
|
423
|
+
options: [
|
|
424
|
+
{ value: "draft", label: { en: "Draft" } },
|
|
425
|
+
{ value: "live", label: { en: "Live" }, color: "#2f9e44" },
|
|
426
|
+
],
|
|
427
|
+
},
|
|
408
428
|
},
|
|
409
429
|
```
|
|
410
430
|
|
|
411
431
|
`on` is the item kinds it is offered on; `description` is the line the view
|
|
412
432
|
editor's Add picker shows; `tone` is a badge's tone when its value names none
|
|
413
|
-
(`accent`, `positive`, `negative`, `warning`, `neutral`, `muted`).
|
|
433
|
+
(`accent`, `positive`, `negative`, `warning`, `neutral`, `muted`). A `currency`
|
|
434
|
+
field names its ISO 4217 code in `currency`. A `select` or `multi_select` field
|
|
435
|
+
lists its `options`, up to 24, each a `value` (a letter or a digit, then up to
|
|
436
|
+
63 letters, digits, `_` and `-`, unique among them), a
|
|
437
|
+
`label` in the reader's language and an optional `color` as `#rrggbb`.
|
|
414
438
|
|
|
415
439
|
**A list field**, `list: true`, holds several values: its value is a list of
|
|
416
440
|
elements, each one value of the field's `kind` with a `ref` of 1 to 255
|
|
417
|
-
characters that tells it from the others.
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
`{ ref,
|
|
421
|
-
|
|
441
|
+
characters that tells it from the others. Any kind but `multi_select`, whose
|
|
442
|
+
one value is already several, may be a list. A `link` or `badge` element is the
|
|
443
|
+
kind's own object with its `ref`, such as `{ ref, url, text? }`; a `scale`
|
|
444
|
+
element is `{ ref, value, max? }`, out of 100 without `max`; every other kind's
|
|
445
|
+
element is `{ ref, value }`. Initiative keeps each element as a value of its
|
|
446
|
+
own, held to the size of one value, and finds an element by its `ref`.
|
|
422
447
|
|
|
423
448
|
**States** say what state a value is in, in the plug-in's own words: up to 4
|
|
424
449
|
facets, each with up to 12 keys. A value names a key of each facet it is in as
|
|
425
450
|
`state`, and Initiative draws one badge per facet, labelled in the reader's
|
|
426
|
-
language. A list element, and a `link`, `badge` or `
|
|
427
|
-
`state` beside its other properties;
|
|
428
|
-
|
|
429
|
-
`ref`: `{ value, state }`.
|
|
451
|
+
language. A list element, and a `link`, `badge` or `{ value, max }` `scale`
|
|
452
|
+
value, carries `state` beside its other properties; any other value that
|
|
453
|
+
carries one is written as an element is, without the `ref`: `{ value, state }`.
|
|
430
454
|
|
|
431
455
|
```ts
|
|
432
456
|
fields: {
|
|
@@ -1240,7 +1264,6 @@ either the file's version or the client is stale.
|
|
|
1240
1264
|
|---|---|
|
|
1241
1265
|
| `projects:read`, `projects:write` | Projects and what belongs to them: tasks, statuses, task types, checklists. |
|
|
1242
1266
|
| `files:read`, `files:write` | Files: text documents, whiteboards, spreadsheets, links and uploads, and the collections they are in. |
|
|
1243
|
-
| `queues:read`, `queues:write` | Queues, their items and commands. |
|
|
1244
1267
|
| `counter_groups:read`, `counter_groups:write` | Counter groups, their counters and commands. |
|
|
1245
1268
|
| `calendars:read`, `calendars:write` | Calendars, events and attendees. |
|
|
1246
1269
|
| `dashboards:read`, `dashboards:write` | Dashboards. |
|
package/dist/contract.d.ts
CHANGED
|
@@ -42,15 +42,15 @@ export type Direction = "emit" | "read" | "write";
|
|
|
42
42
|
export declare const DIRECTIONS: readonly Direction[];
|
|
43
43
|
export type ActorKind = "installation" | "member";
|
|
44
44
|
export declare const ACTOR_KINDS: readonly ActorKind[];
|
|
45
|
-
export type Scope = "projects:read" | "projects:write" | "files:read" | "files:write" | "
|
|
45
|
+
export type Scope = "projects:read" | "projects:write" | "files:read" | "files:write" | "counter_groups:read" | "counter_groups:write" | "calendars:read" | "calendars:write" | "dashboards:read" | "dashboards:write" | "posts:read" | "posts:write" | "wikis:read" | "wikis:write" | "contacts:read" | "contacts:write" | "comments:read" | "comments:write" | "relationships:read" | "relationships:write" | "tags:read" | "tags:write" | "properties:read" | "properties:write" | "sharing:read" | "sharing:write" | "members:read" | "initiatives:read" | "initiatives:moderate" | "community:admin";
|
|
46
46
|
export declare const SCOPES: readonly Scope[];
|
|
47
47
|
export type SurfaceScope = "community" | "initiative";
|
|
48
48
|
export declare const SURFACE_SCOPES: readonly SurfaceScope[];
|
|
49
49
|
export type PageCapability = "camera" | "clipboard-read" | "clipboard-write" | "display-capture" | "fullscreen" | "geolocation" | "microphone";
|
|
50
50
|
export declare const PAGE_CAPABILITIES: readonly PageCapability[];
|
|
51
|
-
export type ItemKind = "task" | "calendar_event" | "
|
|
51
|
+
export type ItemKind = "task" | "calendar_event" | "counter" | "post";
|
|
52
52
|
export declare const ITEM_KINDS: readonly ItemKind[];
|
|
53
|
-
export type FieldKind = "text" | "number" | "date" | "datetime" | "link" | "badge" | "
|
|
53
|
+
export type FieldKind = "text" | "number" | "date" | "datetime" | "link" | "badge" | "scale" | "checkbox" | "url" | "currency" | "select" | "multi_select" | "user_reference";
|
|
54
54
|
export declare const FIELD_KINDS: readonly FieldKind[];
|
|
55
55
|
export type Tone = "accent" | "positive" | "negative" | "warning" | "neutral" | "muted";
|
|
56
56
|
export declare const TONES: readonly Tone[];
|
|
@@ -81,6 +81,7 @@ export declare const CAPS: {
|
|
|
81
81
|
readonly authorizeParams: 12;
|
|
82
82
|
readonly tokenLifetimeSeconds: 600;
|
|
83
83
|
readonly selectOptions: 24;
|
|
84
|
+
readonly optionValueLength: 64;
|
|
84
85
|
readonly accessHintScopes: 24;
|
|
85
86
|
readonly requiresTerms: 10;
|
|
86
87
|
readonly widgets: 12;
|
|
@@ -205,7 +206,8 @@ export declare const FIELDS: {
|
|
|
205
206
|
readonly endpoint: readonly ["id", "label", "description", "returns", "group", "needs_subject", "direction", "params", "actors", "admin_only", "public", "requires", "cache_ttl_seconds", "identity", "unavailable", "request", "steps", "map", "errors"];
|
|
206
207
|
readonly widget: readonly ["id", "meta", "module_source", "endpoints", "sample_data", "requires"];
|
|
207
208
|
readonly page: readonly ["id", "path", "name", "scopes", "admin_only", "capabilities", "requires"];
|
|
208
|
-
readonly field: readonly ["key", "name", "kind", "list", "on", "description", "tone", "states", "actions", "requires"];
|
|
209
|
+
readonly field: readonly ["key", "name", "kind", "list", "on", "description", "tone", "currency", "options", "states", "actions", "requires"];
|
|
210
|
+
readonly fieldOption: readonly ["value", "label", "color"];
|
|
209
211
|
readonly stateFacet: readonly ["name", "values"];
|
|
210
212
|
readonly stateValue: readonly ["label", "tone"];
|
|
211
213
|
readonly sectionNode: readonly ["type", "props", "children"];
|
|
@@ -933,8 +935,14 @@ export interface Field {
|
|
|
933
935
|
/**
|
|
934
936
|
* What the value is, and so how it is drawn: 'text' a string; 'number' a
|
|
935
937
|
* number; 'date' a 'YYYY-MM-DD' string; 'datetime' an ISO 8601 string with
|
|
936
|
-
* its offset; 'link' {url, text?}; 'badge' {text, tone?}; '
|
|
937
|
-
* max}
|
|
938
|
+
* its offset; 'link' {url, text?}; 'badge' {text, tone?}; 'scale' a number
|
|
939
|
+
* from 0 to 100, or {value, max}, which Initiative keeps as value ÷ max ×
|
|
940
|
+
* 100, drawn as a number, stars or a bar; 'checkbox' a boolean; 'url' an
|
|
941
|
+
* address, as a string; 'currency' a number, an amount in the field's
|
|
942
|
+
* 'currency'; 'select' the value of one of the field's 'options';
|
|
943
|
+
* 'multi_select' a list of them; 'user_reference' a person, as the install's
|
|
944
|
+
* own reference for them: the 'id' Initiative gives the person wherever the
|
|
945
|
+
* plug-in reads one.
|
|
938
946
|
*/
|
|
939
947
|
kind: FieldKind;
|
|
940
948
|
/**
|
|
@@ -942,7 +950,8 @@ export interface Field {
|
|
|
942
950
|
* value of 'kind' with a 'ref' that tells it from the others ('listElement').
|
|
943
951
|
* A change gives the whole list in 'set', or adds, replaces and removes
|
|
944
952
|
* elements by 'ref' with 'upsert' and 'remove'. Absent: one value, which a
|
|
945
|
-
* change sets.
|
|
953
|
+
* change sets. Every kind but 'multi_select', whose one value is already
|
|
954
|
+
* several.
|
|
946
955
|
*/
|
|
947
956
|
list?: boolean;
|
|
948
957
|
/**
|
|
@@ -957,14 +966,24 @@ export interface Field {
|
|
|
957
966
|
* A badge's tone when its value names none.
|
|
958
967
|
*/
|
|
959
968
|
tone?: Tone;
|
|
969
|
+
/**
|
|
970
|
+
* A currency field's ISO 4217 code, such as 'EUR': what its amounts are in.
|
|
971
|
+
* Required on one.
|
|
972
|
+
*/
|
|
973
|
+
currency?: string;
|
|
974
|
+
/**
|
|
975
|
+
* A select or multi_select field's options, each value at most once. Required
|
|
976
|
+
* on one.
|
|
977
|
+
*/
|
|
978
|
+
options?: FieldOption[];
|
|
960
979
|
/**
|
|
961
980
|
* What state the value is in, as facets by id, at most 4, each with keys of
|
|
962
981
|
* its own. The value names a key of each facet it is in as 'state',
|
|
963
982
|
* {"<facet>": "<key>"}, and Initiative draws each as a badge, labelled in the
|
|
964
|
-
* reader's language. A list element, and a link, badge or
|
|
965
|
-
* carries 'state' beside its other properties;
|
|
966
|
-
*
|
|
967
|
-
*
|
|
983
|
+
* reader's language. A list element, and a link, badge or scale value written
|
|
984
|
+
* as an object, carries 'state' beside its other properties; any other value
|
|
985
|
+
* that carries one is written as an element is, without the 'ref': {"value":
|
|
986
|
+
* …, "state": …}.
|
|
968
987
|
*/
|
|
969
988
|
states?: Record<string, StateFacet>;
|
|
970
989
|
/**
|
|
@@ -975,6 +994,25 @@ export interface Field {
|
|
|
975
994
|
actions?: Identifier[];
|
|
976
995
|
requires?: Requires;
|
|
977
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* One option of a select or multi_select field: the value a value names, and
|
|
999
|
+
* how Initiative shows it.
|
|
1000
|
+
*/
|
|
1001
|
+
export interface FieldOption {
|
|
1002
|
+
/**
|
|
1003
|
+
* What a value holds when it names this option: a letter or a digit, then
|
|
1004
|
+
* letters, digits, '_' and '-'. Unique among the field's options.
|
|
1005
|
+
*/
|
|
1006
|
+
value: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* The option's words, in the reader's language.
|
|
1009
|
+
*/
|
|
1010
|
+
label: LocalizedText;
|
|
1011
|
+
/**
|
|
1012
|
+
* The option's colour, as '#rrggbb'.
|
|
1013
|
+
*/
|
|
1014
|
+
color?: string;
|
|
1015
|
+
}
|
|
978
1016
|
/**
|
|
979
1017
|
* One facet of a field's state, such as whether a piece of work is open or what
|
|
980
1018
|
* review it has: its name, and the keys a value may name.
|
|
@@ -1271,18 +1309,20 @@ export type ChangeTarget = {
|
|
|
1271
1309
|
};
|
|
1272
1310
|
/**
|
|
1273
1311
|
* One element of a list field's value: one value of the field's 'kind', with a
|
|
1274
|
-
* 'ref' that tells it from the list's others. A text, number, date, datetime
|
|
1275
|
-
* checkbox element holds its value in
|
|
1276
|
-
*
|
|
1277
|
-
* value, max}. Initiative keeps each element
|
|
1278
|
-
* 8192 bytes as JSON. An 'upsert' may give
|
|
1279
|
-
* properties: they are merged into the element with
|
|
1312
|
+
* 'ref' that tells it from the list's others. A text, number, date, datetime,
|
|
1313
|
+
* checkbox, url, currency, select or user_reference element holds its value in
|
|
1314
|
+
* 'value'; a link element is {ref, url, text?}, a badge element {ref, text,
|
|
1315
|
+
* tone?} and a scale element {ref, value, max?}. Initiative keeps each element
|
|
1316
|
+
* as a value of its own, of at most 8192 bytes as JSON. An 'upsert' may give
|
|
1317
|
+
* only some of an element's properties: they are merged into the element with
|
|
1318
|
+
* its 'ref'.
|
|
1280
1319
|
*/
|
|
1281
1320
|
export interface ListElement {
|
|
1282
1321
|
ref: ElementRef;
|
|
1283
1322
|
/**
|
|
1284
|
-
* A text, number, date, datetime
|
|
1285
|
-
* element's figure
|
|
1323
|
+
* A text, number, date, datetime, checkbox, url, currency, select or
|
|
1324
|
+
* user_reference element's value, or a scale element's figure: from 0 to 100,
|
|
1325
|
+
* or out of its 'max'.
|
|
1286
1326
|
*/
|
|
1287
1327
|
value?: string | number | boolean;
|
|
1288
1328
|
/**
|
|
@@ -1298,7 +1338,8 @@ export interface ListElement {
|
|
|
1298
1338
|
*/
|
|
1299
1339
|
tone?: Tone;
|
|
1300
1340
|
/**
|
|
1301
|
-
* A
|
|
1341
|
+
* A scale element's whole, when its figure is not already out of 100:
|
|
1342
|
+
* Initiative keeps value ÷ max × 100.
|
|
1302
1343
|
*/
|
|
1303
1344
|
max?: number;
|
|
1304
1345
|
/**
|
|
@@ -1761,10 +1802,11 @@ export interface WebhookStatus {
|
|
|
1761
1802
|
* setup writes to, whether every expression parses, what a declarative request
|
|
1762
1803
|
* and its steps name, the bounds, ids and endpoints of schedules, which terms
|
|
1763
1804
|
* each kind's schedules, actions, fields and webhook events take, the unique
|
|
1764
|
-
* keys and ids of fields, parts, actions and settings,
|
|
1765
|
-
* field's
|
|
1766
|
-
* placeholders in a part's text, and a
|
|
1767
|
-
* the platform on publish and are not
|
|
1805
|
+
* keys and ids of fields, parts, actions and settings, the unique values of a
|
|
1806
|
+
* field's options, what a part's nodes, a field's element actions and an
|
|
1807
|
+
* action's endpoint and params name, the placeholders in a part's text, and a
|
|
1808
|
+
* part's size and depth are enforced by the platform on publish and are not
|
|
1809
|
+
* expressible here.
|
|
1768
1810
|
*/
|
|
1769
1811
|
export interface Manifest {
|
|
1770
1812
|
/**
|
package/dist/contract.js
CHANGED
|
@@ -25,11 +25,11 @@ export const PARAM_TYPES = ["bool", "datetime", "int", "select", "string", "url"
|
|
|
25
25
|
export const RETURN_VALUE_TYPES = ["bool", "datetime", "int", "string", "url"];
|
|
26
26
|
export const DIRECTIONS = ["emit", "read", "write"];
|
|
27
27
|
export const ACTOR_KINDS = ["installation", "member"];
|
|
28
|
-
export const SCOPES = ["projects:read", "projects:write", "files:read", "files:write", "
|
|
28
|
+
export const SCOPES = ["projects:read", "projects:write", "files:read", "files:write", "counter_groups:read", "counter_groups:write", "calendars:read", "calendars:write", "dashboards:read", "dashboards:write", "posts:read", "posts:write", "wikis:read", "wikis:write", "contacts:read", "contacts:write", "comments:read", "comments:write", "relationships:read", "relationships:write", "tags:read", "tags:write", "properties:read", "properties:write", "sharing:read", "sharing:write", "members:read", "initiatives:read", "initiatives:moderate", "community:admin"];
|
|
29
29
|
export const SURFACE_SCOPES = ["community", "initiative"];
|
|
30
30
|
export const PAGE_CAPABILITIES = ["camera", "clipboard-read", "clipboard-write", "display-capture", "fullscreen", "geolocation", "microphone"];
|
|
31
|
-
export const ITEM_KINDS = ["task", "calendar_event", "
|
|
32
|
-
export const FIELD_KINDS = ["text", "number", "date", "datetime", "link", "badge", "
|
|
31
|
+
export const ITEM_KINDS = ["task", "calendar_event", "counter", "post"];
|
|
32
|
+
export const FIELD_KINDS = ["text", "number", "date", "datetime", "link", "badge", "scale", "checkbox", "url", "currency", "select", "multi_select", "user_reference"];
|
|
33
33
|
export const TONES = ["accent", "positive", "negative", "warning", "neutral", "muted"];
|
|
34
34
|
export const SETTING_TYPES = ["string"];
|
|
35
35
|
export const SETTING_ASSIGNMENTS = ["community_name"];
|
|
@@ -50,6 +50,7 @@ export const CAPS = {
|
|
|
50
50
|
authorizeParams: 12,
|
|
51
51
|
tokenLifetimeSeconds: 600,
|
|
52
52
|
selectOptions: 24,
|
|
53
|
+
optionValueLength: 64,
|
|
53
54
|
accessHintScopes: 24,
|
|
54
55
|
requiresTerms: 10,
|
|
55
56
|
widgets: 12,
|
|
@@ -174,7 +175,8 @@ export const FIELDS = {
|
|
|
174
175
|
endpoint: ["id", "label", "description", "returns", "group", "needs_subject", "direction", "params", "actors", "admin_only", "public", "requires", "cache_ttl_seconds", "identity", "unavailable", "request", "steps", "map", "errors"],
|
|
175
176
|
widget: ["id", "meta", "module_source", "endpoints", "sample_data", "requires"],
|
|
176
177
|
page: ["id", "path", "name", "scopes", "admin_only", "capabilities", "requires"],
|
|
177
|
-
field: ["key", "name", "kind", "list", "on", "description", "tone", "states", "actions", "requires"],
|
|
178
|
+
field: ["key", "name", "kind", "list", "on", "description", "tone", "currency", "options", "states", "actions", "requires"],
|
|
179
|
+
fieldOption: ["value", "label", "color"],
|
|
178
180
|
stateFacet: ["name", "values"],
|
|
179
181
|
stateValue: ["label", "tone"],
|
|
180
182
|
sectionNode: ["type", "props", "children"],
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,MAAM,CAAC,MAAM,QAAQ,GAAuB,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAG1H,MAAM,CAAC,MAAM,SAAS,GAAwB,CAAC,CAAC,CAAC,CAAC;AAGlD,MAAM,CAAC,MAAM,iBAAiB,GAA+B,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AAGvF,MAAM,CAAC,MAAM,UAAU,GAAwB,CAAC,QAAQ,CAAC,CAAC;AAG1D,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,YAAY,CAAC,CAAC;AAGhE,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAG3F,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAG1E,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAGtG,MAAM,CAAC,MAAM,kBAAkB,GAA+B,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CA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