@lapis-notes/lapis-plugin-contacts 0.0.0-stage → 0.1.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/CHANGELOG.md +11 -0
- package/LICENSE +661 -0
- package/README.md +125 -2
- package/dist/ContactMarkdownEditor-DoTuV5ka.js +69 -0
- package/dist/apl-B2DGVGxc.js +76 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-BMALKCNj.js +620 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/css-BkF-NPzE.js +1553 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dist--69zc0xf.js +247 -0
- package/dist/dist-3FBhTVCW.js +260 -0
- package/dist/dist-BIUwdsPJ.js +300 -0
- package/dist/dist-BKba7kvs.js +75 -0
- package/dist/dist-BqWvrEwT.js +98 -0
- package/dist/dist-ByOxufTQ.js +58 -0
- package/dist/dist-CU8VWvs8.js +288 -0
- package/dist/dist-C_EduL9A.js +268 -0
- package/dist/dist-Cqfbp9Nb.js +310 -0
- package/dist/dist-DLu2t1SV.js +611 -0
- package/dist/dist-DPPvU9Yj.js +134 -0
- package/dist/dist-DufK_s_A.js +564 -0
- package/dist/dist-Dug8cDx1.js +93 -0
- package/dist/dist-IBryJBJR.js +137 -0
- package/dist/dist-ciD_jrkE.js +158 -0
- package/dist/dist-v6nTmcwY.js +71 -0
- package/dist/dockerfile-DFX8bq9N.js +194 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/factor-Clf6BoVk.js +65 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/gas-cpmYfFX2.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-CxiO_7JL.js +375 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/index-BGQ4A2O3.js +148265 -0
- package/dist/index.js +16 -0
- package/dist/javascript-DOuB9oqA.js +691 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-DBWH1E3Q.js +217 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/module-BFIPY8X5.js +2973 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/native-CDi4YD_s.js +13 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nsis-DAjtFbMY.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pug-TGXr6c5j.js +248 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-BkR3uSy8.js +313 -0
- package/dist/q-DyHZGnqm.js +86 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/ruby-DjGRFiOI.js +228 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/simple-mode-mNVtnu0l.js +89 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-CfG5lQ3l.js +282 -0
- package/dist/styles.css +1 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/toml-DWAmxCjl.js +58 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/types/contacts/contact-fields.d.ts +28 -0
- package/dist/types/contacts/contact-list-view.d.ts +41 -0
- package/dist/types/contacts/contact-methods.d.ts +38 -0
- package/dist/types/contacts/contact-selection.d.ts +23 -0
- package/dist/types/contacts/markdown-session-types.d.ts +8 -0
- package/dist/types/contacts/model.d.ts +103 -0
- package/dist/types/contacts/person.d.ts +49 -0
- package/dist/types/contacts/validate-frontmatter.d.ts +1 -0
- package/dist/types/lib/contacts-plugin.d.ts +34 -0
- package/dist/types/lib/contacts-settings-definition.d.ts +24 -0
- package/dist/types/lib/contacts-settings.d.ts +48 -0
- package/dist/types/lib/contacts-view.d.ts +22 -0
- package/dist/types/lib/google/conflict-queue.d.ts +35 -0
- package/dist/types/lib/google/google-person.d.ts +54 -0
- package/dist/types/lib/google/google-sync.d.ts +50 -0
- package/dist/types/lib/google/people-client.d.ts +50 -0
- package/dist/types/lib/google/people-import.d.ts +61 -0
- package/dist/types/lib/google/people-push.d.ts +30 -0
- package/dist/types/lib/google/reconcile.d.ts +62 -0
- package/dist/types/lib/google/vault-contact-files.d.ts +8 -0
- package/dist/types/lib/google-conflicts-view.d.ts +15 -0
- package/dist/types/lib/index.d.ts +4 -0
- package/dist/types/lib/vault-contacts.d.ts +64 -0
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vbscript-1f_Dhg5H.js +324 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-CiS1jyi5.js +262 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-Ct6lEb4B.js +422 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/z80-Pki2zAjW.js +61 -0
- package/manifest.json +43 -0
- package/package.json +116 -4
- package/schemas/contact.schema.json +619 -0
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Lapis contact (Google People Person fields)",
|
|
4
|
+
"description": "Contact Markdown frontmatter. The Person fields follow the Google People API. A local contact receives a permanent contacts/<UUID> identity. Lapis keeps its Markdown body, tags, groups and contact history in the vault.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["resourceName"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"resourceName": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"pattern": "^(contacts|people)/[^/\\s]+$",
|
|
11
|
+
"description": "Immutable contact ID. Locally generated IDs use contacts/<UUID>. Imported Google resources retain people/<ID>."
|
|
12
|
+
},
|
|
13
|
+
"etag": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"names": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"$ref": "#/definitions/personName"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"emailAddresses": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"$ref": "#/definitions/emailAddress"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"phoneNumbers": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"$ref": "#/definitions/googleMethod"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"organizations": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/definitions/organization"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"birthdays": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "#/definitions/birthday"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"photos": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"$ref": "#/definitions/photo"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"userDefined": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"$ref": "#/definitions/userDefined"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"tags": {
|
|
59
|
+
"description": "The form writes a YAML list of Lapis tag names. Existing delimited strings are accepted.",
|
|
60
|
+
"oneOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "#/definitions/text"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"$ref": "#/definitions/text"
|
|
74
|
+
},
|
|
75
|
+
"role": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"organisation": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"groups": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"$ref": "#/definitions/text"
|
|
85
|
+
},
|
|
86
|
+
"uniqueItems": true
|
|
87
|
+
},
|
|
88
|
+
"favourite": {
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"emails": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"$ref": "#/definitions/method"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"phones": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"$ref": "#/definitions/method"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"urls": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"$ref": "#/definitions/website"
|
|
107
|
+
},
|
|
108
|
+
"description": "HTTP(S) URLs use the Google type/value pair. The editor also reads legacy labels."
|
|
109
|
+
},
|
|
110
|
+
"customFields": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"$ref": "#/definitions/customField"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"addresses": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": {
|
|
119
|
+
"$ref": "#/definitions/address"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"significantDates": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"$ref": "#/definitions/significantDate"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"relatedPeople": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"pattern": "^(?:(?:people|contacts)/[^/\\s]+|(?!(?:.*/)?\\.{1,2}/)(?!/)[^\\\\]+\\.md)$",
|
|
133
|
+
"description": "Stable contact resource name, or an existing vault-relative Markdown path."
|
|
134
|
+
},
|
|
135
|
+
"uniqueItems": true
|
|
136
|
+
},
|
|
137
|
+
"interactions": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"$ref": "#/definitions/interaction"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"followUps": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"$ref": "#/definitions/followUp"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"email": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "Legacy scalar email."
|
|
152
|
+
},
|
|
153
|
+
"phone": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "Legacy scalar phone."
|
|
156
|
+
},
|
|
157
|
+
"avatarBackground": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"pattern": "^#[a-fA-F0-9]{6}$"
|
|
160
|
+
},
|
|
161
|
+
"google": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"description": "Binding for a locally created contact linked to Google. Its local resourceName remains permanent.",
|
|
164
|
+
"properties": {
|
|
165
|
+
"resourceName": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^people/[^/\\s]+$"
|
|
168
|
+
},
|
|
169
|
+
"account": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"description": "The authenticated Google account the link belongs to; remote identities are scoped to it."
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": ["resourceName"]
|
|
175
|
+
},
|
|
176
|
+
"metadata": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"description": "Google PersonMetadata is retained, including source identifiers and source etags.",
|
|
179
|
+
"properties": {
|
|
180
|
+
"sources": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"type": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"id": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"etag": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"additionalProperties": true,
|
|
201
|
+
"definitions": {
|
|
202
|
+
"text": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"pattern": "\\S"
|
|
205
|
+
},
|
|
206
|
+
"day": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"format": "date",
|
|
209
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
210
|
+
},
|
|
211
|
+
"method": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"properties": {
|
|
214
|
+
"label": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"value": {
|
|
218
|
+
"$ref": "#/definitions/text"
|
|
219
|
+
},
|
|
220
|
+
"type": {
|
|
221
|
+
"type": "string"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": ["value"]
|
|
225
|
+
},
|
|
226
|
+
"website": {
|
|
227
|
+
"allOf": [
|
|
228
|
+
{
|
|
229
|
+
"$ref": "#/definitions/method"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"properties": {
|
|
233
|
+
"value": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"format": "uri",
|
|
236
|
+
"pattern": "^[Hh][Tt][Tt][Pp][Ss]?://"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"customField": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"properties": {
|
|
245
|
+
"label": {
|
|
246
|
+
"$ref": "#/definitions/text"
|
|
247
|
+
},
|
|
248
|
+
"value": {
|
|
249
|
+
"$ref": "#/definitions/text"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"required": ["label", "value"]
|
|
253
|
+
},
|
|
254
|
+
"address": {
|
|
255
|
+
"type": "object",
|
|
256
|
+
"properties": {
|
|
257
|
+
"label": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
"address": {
|
|
261
|
+
"$ref": "#/definitions/text"
|
|
262
|
+
},
|
|
263
|
+
"start": {
|
|
264
|
+
"$ref": "#/definitions/day"
|
|
265
|
+
},
|
|
266
|
+
"end": {
|
|
267
|
+
"$ref": "#/definitions/day"
|
|
268
|
+
},
|
|
269
|
+
"type": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
"formattedValue": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
"streetAddress": {
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"extendedAddress": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
},
|
|
281
|
+
"poBox": {
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
"city": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"region": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"postalCode": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
},
|
|
293
|
+
"country": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"countryCode": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"anyOf": [
|
|
301
|
+
{
|
|
302
|
+
"required": ["address"],
|
|
303
|
+
"properties": {
|
|
304
|
+
"address": {
|
|
305
|
+
"$ref": "#/definitions/text"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"required": ["formattedValue"],
|
|
311
|
+
"properties": {
|
|
312
|
+
"formattedValue": {
|
|
313
|
+
"$ref": "#/definitions/text"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"required": ["streetAddress"],
|
|
319
|
+
"properties": {
|
|
320
|
+
"streetAddress": {
|
|
321
|
+
"$ref": "#/definitions/text"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"required": ["extendedAddress"],
|
|
327
|
+
"properties": {
|
|
328
|
+
"extendedAddress": {
|
|
329
|
+
"$ref": "#/definitions/text"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"required": ["poBox"],
|
|
335
|
+
"properties": {
|
|
336
|
+
"poBox": {
|
|
337
|
+
"$ref": "#/definitions/text"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"required": ["city"],
|
|
343
|
+
"properties": {
|
|
344
|
+
"city": {
|
|
345
|
+
"$ref": "#/definitions/text"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"required": ["region"],
|
|
351
|
+
"properties": {
|
|
352
|
+
"region": {
|
|
353
|
+
"$ref": "#/definitions/text"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"required": ["postalCode"],
|
|
359
|
+
"properties": {
|
|
360
|
+
"postalCode": {
|
|
361
|
+
"$ref": "#/definitions/text"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"required": ["country"],
|
|
367
|
+
"properties": {
|
|
368
|
+
"country": {
|
|
369
|
+
"$ref": "#/definitions/text"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"required": ["countryCode"],
|
|
375
|
+
"properties": {
|
|
376
|
+
"countryCode": {
|
|
377
|
+
"$ref": "#/definitions/text"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"significantDate": {
|
|
384
|
+
"type": "object",
|
|
385
|
+
"properties": {
|
|
386
|
+
"label": {
|
|
387
|
+
"$ref": "#/definitions/text"
|
|
388
|
+
},
|
|
389
|
+
"date": {
|
|
390
|
+
"$ref": "#/definitions/day"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"required": ["label", "date"]
|
|
394
|
+
},
|
|
395
|
+
"interaction": {
|
|
396
|
+
"type": "object",
|
|
397
|
+
"properties": {
|
|
398
|
+
"date": {
|
|
399
|
+
"$ref": "#/definitions/day"
|
|
400
|
+
},
|
|
401
|
+
"channel": {
|
|
402
|
+
"type": "string"
|
|
403
|
+
},
|
|
404
|
+
"note": {
|
|
405
|
+
"type": "string"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": ["date", "channel", "note"]
|
|
409
|
+
},
|
|
410
|
+
"followUp": {
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"id": {
|
|
414
|
+
"$ref": "#/definitions/text"
|
|
415
|
+
},
|
|
416
|
+
"topic": {
|
|
417
|
+
"$ref": "#/definitions/text"
|
|
418
|
+
},
|
|
419
|
+
"direction": {
|
|
420
|
+
"enum": ["mine", "theirs"]
|
|
421
|
+
},
|
|
422
|
+
"opened": {
|
|
423
|
+
"$ref": "#/definitions/day"
|
|
424
|
+
},
|
|
425
|
+
"due": {
|
|
426
|
+
"$ref": "#/definitions/day"
|
|
427
|
+
},
|
|
428
|
+
"resolved": {
|
|
429
|
+
"$ref": "#/definitions/day"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"required": ["id", "topic", "direction", "opened", "due"]
|
|
433
|
+
},
|
|
434
|
+
"form": {
|
|
435
|
+
"title": "Contact form values",
|
|
436
|
+
"description": "A new draft can be validated before the store assigns its stable ID. The form uses labels for contact methods and keeps the Markdown body in notes.",
|
|
437
|
+
"type": "object",
|
|
438
|
+
"required": ["name"],
|
|
439
|
+
"properties": {
|
|
440
|
+
"names": {
|
|
441
|
+
"$ref": "#/properties/names"
|
|
442
|
+
},
|
|
443
|
+
"organizations": {
|
|
444
|
+
"$ref": "#/properties/organizations"
|
|
445
|
+
},
|
|
446
|
+
"birthdays": {
|
|
447
|
+
"$ref": "#/properties/birthdays"
|
|
448
|
+
},
|
|
449
|
+
"photos": {
|
|
450
|
+
"$ref": "#/properties/photos"
|
|
451
|
+
},
|
|
452
|
+
"tags": {
|
|
453
|
+
"$ref": "#/properties/tags"
|
|
454
|
+
},
|
|
455
|
+
"name": {
|
|
456
|
+
"$ref": "#/properties/name"
|
|
457
|
+
},
|
|
458
|
+
"groups": {
|
|
459
|
+
"$ref": "#/properties/groups"
|
|
460
|
+
},
|
|
461
|
+
"favourite": {
|
|
462
|
+
"$ref": "#/properties/favourite"
|
|
463
|
+
},
|
|
464
|
+
"emails": {
|
|
465
|
+
"$ref": "#/properties/emails"
|
|
466
|
+
},
|
|
467
|
+
"phones": {
|
|
468
|
+
"$ref": "#/properties/phones"
|
|
469
|
+
},
|
|
470
|
+
"urls": {
|
|
471
|
+
"$ref": "#/properties/urls"
|
|
472
|
+
},
|
|
473
|
+
"customFields": {
|
|
474
|
+
"$ref": "#/properties/customFields"
|
|
475
|
+
},
|
|
476
|
+
"addresses": {
|
|
477
|
+
"$ref": "#/properties/addresses"
|
|
478
|
+
},
|
|
479
|
+
"significantDates": {
|
|
480
|
+
"$ref": "#/properties/significantDates"
|
|
481
|
+
},
|
|
482
|
+
"relatedPeople": {
|
|
483
|
+
"$ref": "#/properties/relatedPeople"
|
|
484
|
+
},
|
|
485
|
+
"avatarBackground": {
|
|
486
|
+
"$ref": "#/properties/avatarBackground"
|
|
487
|
+
},
|
|
488
|
+
"notes": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"contentMediaType": "text/markdown"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"personName": {
|
|
495
|
+
"type": "object",
|
|
496
|
+
"properties": {
|
|
497
|
+
"givenName": {
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
"middleName": {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
"familyName": {
|
|
504
|
+
"type": "string"
|
|
505
|
+
},
|
|
506
|
+
"displayName": {
|
|
507
|
+
"type": "string"
|
|
508
|
+
},
|
|
509
|
+
"unstructuredName": {
|
|
510
|
+
"type": "string"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"organization": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"name": {
|
|
518
|
+
"type": "string"
|
|
519
|
+
},
|
|
520
|
+
"title": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"department": {
|
|
524
|
+
"type": "string"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"googleMethod": {
|
|
529
|
+
"type": "object",
|
|
530
|
+
"properties": {
|
|
531
|
+
"value": {
|
|
532
|
+
"$ref": "#/definitions/text"
|
|
533
|
+
},
|
|
534
|
+
"type": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
"required": ["value"]
|
|
539
|
+
},
|
|
540
|
+
"emailAddress": {
|
|
541
|
+
"type": "object",
|
|
542
|
+
"properties": {
|
|
543
|
+
"value": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"format": "email"
|
|
546
|
+
},
|
|
547
|
+
"type": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"required": ["value"]
|
|
552
|
+
},
|
|
553
|
+
"userDefined": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"properties": {
|
|
556
|
+
"key": {
|
|
557
|
+
"$ref": "#/definitions/text"
|
|
558
|
+
},
|
|
559
|
+
"value": {
|
|
560
|
+
"$ref": "#/definitions/text"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"required": ["key", "value"]
|
|
564
|
+
},
|
|
565
|
+
"dateParts": {
|
|
566
|
+
"type": "object",
|
|
567
|
+
"properties": {
|
|
568
|
+
"year": {
|
|
569
|
+
"type": "integer",
|
|
570
|
+
"minimum": 0,
|
|
571
|
+
"maximum": 9999
|
|
572
|
+
},
|
|
573
|
+
"month": {
|
|
574
|
+
"type": "integer",
|
|
575
|
+
"minimum": 0,
|
|
576
|
+
"maximum": 12
|
|
577
|
+
},
|
|
578
|
+
"day": {
|
|
579
|
+
"type": "integer",
|
|
580
|
+
"minimum": 0,
|
|
581
|
+
"maximum": 31
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"birthday": {
|
|
586
|
+
"type": "object",
|
|
587
|
+
"properties": {
|
|
588
|
+
"date": {
|
|
589
|
+
"$ref": "#/definitions/dateParts"
|
|
590
|
+
},
|
|
591
|
+
"text": {
|
|
592
|
+
"$ref": "#/definitions/text"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"anyOf": [
|
|
596
|
+
{
|
|
597
|
+
"required": ["date"]
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"required": ["text"]
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
"photo": {
|
|
605
|
+
"type": "object",
|
|
606
|
+
"properties": {
|
|
607
|
+
"url": {
|
|
608
|
+
"type": "string",
|
|
609
|
+
"pattern": "^(https?://|data:image/(png|jpeg|gif|webp);base64,|data:image/svg\\+xml,)",
|
|
610
|
+
"format": "uri"
|
|
611
|
+
},
|
|
612
|
+
"default": {
|
|
613
|
+
"type": "boolean"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"required": ["url"]
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|