@fedify/fedify 0.14.4 → 0.14.5
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/CHANGES.md +9 -0
- package/esm/vocab/vocab.js +289 -87
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts +63 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/esm/vocab/vocab.js
CHANGED
@@ -2780,15 +2780,7 @@ export class Object {
|
|
2780
2780
|
...options,
|
2781
2781
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
2782
2782
|
};
|
2783
|
-
if (options.format == null &&
|
2784
|
-
(this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz == null ||
|
2785
|
-
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz.length < 1) &&
|
2786
|
-
(this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav == null ||
|
2787
|
-
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav.length < 1) &&
|
2788
|
-
(this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1 == null ||
|
2789
|
-
this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1.length < 1) &&
|
2790
|
-
(this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8 == null ||
|
2791
|
-
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8.length < 1)) {
|
2783
|
+
if (options.format == null && this.isCompactable()) {
|
2792
2784
|
const result = {};
|
2793
2785
|
// deno-lint-ignore no-unused-vars
|
2794
2786
|
let compactItems;
|
@@ -3642,6 +3634,21 @@ export class Object {
|
|
3642
3634
|
}
|
3643
3635
|
return compacted;
|
3644
3636
|
}
|
3637
|
+
isCompactable() {
|
3638
|
+
if (this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz != null &&
|
3639
|
+
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz.length > 0)
|
3640
|
+
return false;
|
3641
|
+
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav != null &&
|
3642
|
+
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav.length > 0)
|
3643
|
+
return false;
|
3644
|
+
if (this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1 != null &&
|
3645
|
+
this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1.length > 0)
|
3646
|
+
return false;
|
3647
|
+
if (this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8 != null &&
|
3648
|
+
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8.length > 0)
|
3649
|
+
return false;
|
3650
|
+
return true;
|
3651
|
+
}
|
3645
3652
|
/**
|
3646
3653
|
* Converts a JSON-LD structure to an object of this type.
|
3647
3654
|
* @param json The JSON-LD structure to convert.
|
@@ -5357,7 +5364,7 @@ export class Emoji extends Object {
|
|
5357
5364
|
...options,
|
5358
5365
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
5359
5366
|
};
|
5360
|
-
if (options.format == null) {
|
5367
|
+
if (options.format == null && this.isCompactable()) {
|
5361
5368
|
const result = await super.toJsonLd({
|
5362
5369
|
...options,
|
5363
5370
|
format: undefined,
|
@@ -5410,6 +5417,9 @@ export class Emoji extends Object {
|
|
5410
5417
|
}
|
5411
5418
|
return compacted;
|
5412
5419
|
}
|
5420
|
+
isCompactable() {
|
5421
|
+
return super.isCompactable();
|
5422
|
+
}
|
5413
5423
|
/**
|
5414
5424
|
* Converts a JSON-LD structure to an object of this type.
|
5415
5425
|
* @param json The JSON-LD structure to convert.
|
@@ -5540,7 +5550,7 @@ export class ChatMessage extends Object {
|
|
5540
5550
|
...options,
|
5541
5551
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
5542
5552
|
};
|
5543
|
-
if (options.format == null) {
|
5553
|
+
if (options.format == null && this.isCompactable()) {
|
5544
5554
|
const result = await super.toJsonLd({
|
5545
5555
|
...options,
|
5546
5556
|
format: undefined,
|
@@ -5603,6 +5613,9 @@ export class ChatMessage extends Object {
|
|
5603
5613
|
}
|
5604
5614
|
return compacted;
|
5605
5615
|
}
|
5616
|
+
isCompactable() {
|
5617
|
+
return super.isCompactable();
|
5618
|
+
}
|
5606
5619
|
/**
|
5607
5620
|
* Converts a JSON-LD structure to an object of this type.
|
5608
5621
|
* @param json The JSON-LD structure to convert.
|
@@ -5806,11 +5819,7 @@ export class PropertyValue {
|
|
5806
5819
|
...options,
|
5807
5820
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
5808
5821
|
};
|
5809
|
-
if (options.format == null &&
|
5810
|
-
(this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav == null ||
|
5811
|
-
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav.length < 1) &&
|
5812
|
-
(this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx == null ||
|
5813
|
-
this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx.length < 1)) {
|
5822
|
+
if (options.format == null && this.isCompactable()) {
|
5814
5823
|
const result = {};
|
5815
5824
|
// deno-lint-ignore no-unused-vars
|
5816
5825
|
let compactItems;
|
@@ -5895,6 +5904,15 @@ export class PropertyValue {
|
|
5895
5904
|
}
|
5896
5905
|
return compacted;
|
5897
5906
|
}
|
5907
|
+
isCompactable() {
|
5908
|
+
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav != null &&
|
5909
|
+
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav.length > 0)
|
5910
|
+
return false;
|
5911
|
+
if (this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx != null &&
|
5912
|
+
this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx.length > 0)
|
5913
|
+
return false;
|
5914
|
+
return true;
|
5915
|
+
}
|
5898
5916
|
/**
|
5899
5917
|
* Converts a JSON-LD structure to an object of this type.
|
5900
5918
|
* @param json The JSON-LD structure to convert.
|
@@ -6386,6 +6404,9 @@ export class DataIntegrityProof {
|
|
6386
6404
|
}
|
6387
6405
|
return compacted;
|
6388
6406
|
}
|
6407
|
+
isCompactable() {
|
6408
|
+
return true;
|
6409
|
+
}
|
6389
6410
|
/**
|
6390
6411
|
* Converts a JSON-LD structure to an object of this type.
|
6391
6412
|
* @param json The JSON-LD structure to convert.
|
@@ -6804,7 +6825,7 @@ export class CryptographicKey {
|
|
6804
6825
|
...options,
|
6805
6826
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
6806
6827
|
};
|
6807
|
-
if (options.format == null) {
|
6828
|
+
if (options.format == null && this.isCompactable()) {
|
6808
6829
|
const result = {};
|
6809
6830
|
// deno-lint-ignore no-unused-vars
|
6810
6831
|
let compactItems;
|
@@ -6909,6 +6930,9 @@ export class CryptographicKey {
|
|
6909
6930
|
}
|
6910
6931
|
return compacted;
|
6911
6932
|
}
|
6933
|
+
isCompactable() {
|
6934
|
+
return true;
|
6935
|
+
}
|
6912
6936
|
/**
|
6913
6937
|
* Converts a JSON-LD structure to an object of this type.
|
6914
6938
|
* @param json The JSON-LD structure to convert.
|
@@ -7286,7 +7310,7 @@ export class Multikey {
|
|
7286
7310
|
...options,
|
7287
7311
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
7288
7312
|
};
|
7289
|
-
if (options.format == null) {
|
7313
|
+
if (options.format == null && this.isCompactable()) {
|
7290
7314
|
const result = {};
|
7291
7315
|
// deno-lint-ignore no-unused-vars
|
7292
7316
|
let compactItems;
|
@@ -7394,6 +7418,9 @@ export class Multikey {
|
|
7394
7418
|
}
|
7395
7419
|
return compacted;
|
7396
7420
|
}
|
7421
|
+
isCompactable() {
|
7422
|
+
return true;
|
7423
|
+
}
|
7397
7424
|
/**
|
7398
7425
|
* Converts a JSON-LD structure to an object of this type.
|
7399
7426
|
* @param json The JSON-LD structure to convert.
|
@@ -8476,7 +8503,7 @@ export class Activity extends Object {
|
|
8476
8503
|
...options,
|
8477
8504
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
8478
8505
|
};
|
8479
|
-
if (options.format == null) {
|
8506
|
+
if (options.format == null && this.isCompactable()) {
|
8480
8507
|
const result = await super.toJsonLd({
|
8481
8508
|
...options,
|
8482
8509
|
format: undefined,
|
@@ -8715,6 +8742,9 @@ export class Activity extends Object {
|
|
8715
8742
|
}
|
8716
8743
|
return compacted;
|
8717
8744
|
}
|
8745
|
+
isCompactable() {
|
8746
|
+
return super.isCompactable();
|
8747
|
+
}
|
8718
8748
|
/**
|
8719
8749
|
* Converts a JSON-LD structure to an object of this type.
|
8720
8750
|
* @param json The JSON-LD structure to convert.
|
@@ -9157,7 +9187,7 @@ export class Accept extends Activity {
|
|
9157
9187
|
...options,
|
9158
9188
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
9159
9189
|
};
|
9160
|
-
if (options.format == null) {
|
9190
|
+
if (options.format == null && this.isCompactable()) {
|
9161
9191
|
const result = await super.toJsonLd({
|
9162
9192
|
...options,
|
9163
9193
|
format: undefined,
|
@@ -9210,6 +9240,9 @@ export class Accept extends Activity {
|
|
9210
9240
|
}
|
9211
9241
|
return compacted;
|
9212
9242
|
}
|
9243
|
+
isCompactable() {
|
9244
|
+
return super.isCompactable();
|
9245
|
+
}
|
9213
9246
|
/**
|
9214
9247
|
* Converts a JSON-LD structure to an object of this type.
|
9215
9248
|
* @param json The JSON-LD structure to convert.
|
@@ -9342,7 +9375,7 @@ export class Add extends Activity {
|
|
9342
9375
|
...options,
|
9343
9376
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
9344
9377
|
};
|
9345
|
-
if (options.format == null) {
|
9378
|
+
if (options.format == null && this.isCompactable()) {
|
9346
9379
|
const result = await super.toJsonLd({
|
9347
9380
|
...options,
|
9348
9381
|
format: undefined,
|
@@ -9395,6 +9428,9 @@ export class Add extends Activity {
|
|
9395
9428
|
}
|
9396
9429
|
return compacted;
|
9397
9430
|
}
|
9431
|
+
isCompactable() {
|
9432
|
+
return super.isCompactable();
|
9433
|
+
}
|
9398
9434
|
/**
|
9399
9435
|
* Converts a JSON-LD structure to an object of this type.
|
9400
9436
|
* @param json The JSON-LD structure to convert.
|
@@ -9523,7 +9559,7 @@ export class Announce extends Activity {
|
|
9523
9559
|
...options,
|
9524
9560
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
9525
9561
|
};
|
9526
|
-
if (options.format == null) {
|
9562
|
+
if (options.format == null && this.isCompactable()) {
|
9527
9563
|
const result = await super.toJsonLd({
|
9528
9564
|
...options,
|
9529
9565
|
format: undefined,
|
@@ -9590,6 +9626,9 @@ export class Announce extends Activity {
|
|
9590
9626
|
}
|
9591
9627
|
return compacted;
|
9592
9628
|
}
|
9629
|
+
isCompactable() {
|
9630
|
+
return super.isCompactable();
|
9631
|
+
}
|
9593
9632
|
/**
|
9594
9633
|
* Converts a JSON-LD structure to an object of this type.
|
9595
9634
|
* @param json The JSON-LD structure to convert.
|
@@ -11104,9 +11143,7 @@ export class Application extends Object {
|
|
11104
11143
|
...options,
|
11105
11144
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
11106
11145
|
};
|
11107
|
-
if (options.format == null &&
|
11108
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf == null ||
|
11109
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length < 1)) {
|
11146
|
+
if (options.format == null && this.isCompactable()) {
|
11110
11147
|
const result = await super.toJsonLd({
|
11111
11148
|
...options,
|
11112
11149
|
format: undefined,
|
@@ -11643,6 +11680,12 @@ export class Application extends Object {
|
|
11643
11680
|
}
|
11644
11681
|
return compacted;
|
11645
11682
|
}
|
11683
|
+
isCompactable() {
|
11684
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf != null &&
|
11685
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length > 0)
|
11686
|
+
return false;
|
11687
|
+
return super.isCompactable();
|
11688
|
+
}
|
11646
11689
|
/**
|
11647
11690
|
* Converts a JSON-LD structure to an object of this type.
|
11648
11691
|
* @param json The JSON-LD structure to convert.
|
@@ -12314,7 +12357,7 @@ export class IntransitiveActivity extends Activity {
|
|
12314
12357
|
...options,
|
12315
12358
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
12316
12359
|
};
|
12317
|
-
if (options.format == null) {
|
12360
|
+
if (options.format == null && this.isCompactable()) {
|
12318
12361
|
const result = await super.toJsonLd({
|
12319
12362
|
...options,
|
12320
12363
|
format: undefined,
|
@@ -12369,6 +12412,9 @@ export class IntransitiveActivity extends Activity {
|
|
12369
12412
|
}
|
12370
12413
|
return compacted;
|
12371
12414
|
}
|
12415
|
+
isCompactable() {
|
12416
|
+
return super.isCompactable();
|
12417
|
+
}
|
12372
12418
|
/**
|
12373
12419
|
* Converts a JSON-LD structure to an object of this type.
|
12374
12420
|
* @param json The JSON-LD structure to convert.
|
@@ -12542,6 +12588,9 @@ export class Arrive extends IntransitiveActivity {
|
|
12542
12588
|
}
|
12543
12589
|
return compacted;
|
12544
12590
|
}
|
12591
|
+
isCompactable() {
|
12592
|
+
return super.isCompactable();
|
12593
|
+
}
|
12545
12594
|
/**
|
12546
12595
|
* Converts a JSON-LD structure to an object of this type.
|
12547
12596
|
* @param json The JSON-LD structure to convert.
|
@@ -12668,7 +12717,7 @@ export class Article extends Object {
|
|
12668
12717
|
...options,
|
12669
12718
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
12670
12719
|
};
|
12671
|
-
if (options.format == null) {
|
12720
|
+
if (options.format == null && this.isCompactable()) {
|
12672
12721
|
const result = await super.toJsonLd({
|
12673
12722
|
...options,
|
12674
12723
|
format: undefined,
|
@@ -12733,6 +12782,9 @@ export class Article extends Object {
|
|
12733
12782
|
}
|
12734
12783
|
return compacted;
|
12735
12784
|
}
|
12785
|
+
isCompactable() {
|
12786
|
+
return super.isCompactable();
|
12787
|
+
}
|
12736
12788
|
/**
|
12737
12789
|
* Converts a JSON-LD structure to an object of this type.
|
12738
12790
|
* @param json The JSON-LD structure to convert.
|
@@ -12923,7 +12975,7 @@ export class Document extends Object {
|
|
12923
12975
|
...options,
|
12924
12976
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
12925
12977
|
};
|
12926
|
-
if (options.format == null) {
|
12978
|
+
if (options.format == null && this.isCompactable()) {
|
12927
12979
|
const result = await super.toJsonLd({
|
12928
12980
|
...options,
|
12929
12981
|
format: undefined,
|
@@ -13020,6 +13072,9 @@ export class Document extends Object {
|
|
13020
13072
|
}
|
13021
13073
|
return compacted;
|
13022
13074
|
}
|
13075
|
+
isCompactable() {
|
13076
|
+
return super.isCompactable();
|
13077
|
+
}
|
13023
13078
|
/**
|
13024
13079
|
* Converts a JSON-LD structure to an object of this type.
|
13025
13080
|
* @param json The JSON-LD structure to convert.
|
@@ -13206,7 +13261,7 @@ export class Audio extends Document {
|
|
13206
13261
|
...options,
|
13207
13262
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13208
13263
|
};
|
13209
|
-
if (options.format == null) {
|
13264
|
+
if (options.format == null && this.isCompactable()) {
|
13210
13265
|
const result = await super.toJsonLd({
|
13211
13266
|
...options,
|
13212
13267
|
format: undefined,
|
@@ -13259,6 +13314,9 @@ export class Audio extends Document {
|
|
13259
13314
|
}
|
13260
13315
|
return compacted;
|
13261
13316
|
}
|
13317
|
+
isCompactable() {
|
13318
|
+
return super.isCompactable();
|
13319
|
+
}
|
13262
13320
|
/**
|
13263
13321
|
* Converts a JSON-LD structure to an object of this type.
|
13264
13322
|
* @param json The JSON-LD structure to convert.
|
@@ -13386,7 +13444,7 @@ export class Ignore extends Activity {
|
|
13386
13444
|
...options,
|
13387
13445
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13388
13446
|
};
|
13389
|
-
if (options.format == null) {
|
13447
|
+
if (options.format == null && this.isCompactable()) {
|
13390
13448
|
const result = await super.toJsonLd({
|
13391
13449
|
...options,
|
13392
13450
|
format: undefined,
|
@@ -13439,6 +13497,9 @@ export class Ignore extends Activity {
|
|
13439
13497
|
}
|
13440
13498
|
return compacted;
|
13441
13499
|
}
|
13500
|
+
isCompactable() {
|
13501
|
+
return super.isCompactable();
|
13502
|
+
}
|
13442
13503
|
/**
|
13443
13504
|
* Converts a JSON-LD structure to an object of this type.
|
13444
13505
|
* @param json The JSON-LD structure to convert.
|
@@ -13571,7 +13632,7 @@ export class Block extends Ignore {
|
|
13571
13632
|
...options,
|
13572
13633
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
13573
13634
|
};
|
13574
|
-
if (options.format == null) {
|
13635
|
+
if (options.format == null && this.isCompactable()) {
|
13575
13636
|
const result = await super.toJsonLd({
|
13576
13637
|
...options,
|
13577
13638
|
format: undefined,
|
@@ -13624,6 +13685,9 @@ export class Block extends Ignore {
|
|
13624
13685
|
}
|
13625
13686
|
return compacted;
|
13626
13687
|
}
|
13688
|
+
isCompactable() {
|
13689
|
+
return super.isCompactable();
|
13690
|
+
}
|
13627
13691
|
/**
|
13628
13692
|
* Converts a JSON-LD structure to an object of this type.
|
13629
13693
|
* @param json The JSON-LD structure to convert.
|
@@ -14110,7 +14174,7 @@ export class Collection extends Object {
|
|
14110
14174
|
...options,
|
14111
14175
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
14112
14176
|
};
|
14113
|
-
if (options.format == null) {
|
14177
|
+
if (options.format == null && this.isCompactable()) {
|
14114
14178
|
const result = await super.toJsonLd({
|
14115
14179
|
...options,
|
14116
14180
|
format: undefined,
|
@@ -14307,6 +14371,9 @@ export class Collection extends Object {
|
|
14307
14371
|
}
|
14308
14372
|
return compacted;
|
14309
14373
|
}
|
14374
|
+
isCompactable() {
|
14375
|
+
return super.isCompactable();
|
14376
|
+
}
|
14310
14377
|
/**
|
14311
14378
|
* Converts a JSON-LD structure to an object of this type.
|
14312
14379
|
* @param json The JSON-LD structure to convert.
|
@@ -14888,7 +14955,7 @@ export class CollectionPage extends Collection {
|
|
14888
14955
|
...options,
|
14889
14956
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
14890
14957
|
};
|
14891
|
-
if (options.format == null) {
|
14958
|
+
if (options.format == null && this.isCompactable()) {
|
14892
14959
|
const result = await super.toJsonLd({
|
14893
14960
|
...options,
|
14894
14961
|
format: undefined,
|
@@ -15028,6 +15095,9 @@ export class CollectionPage extends Collection {
|
|
15028
15095
|
}
|
15029
15096
|
return compacted;
|
15030
15097
|
}
|
15098
|
+
isCompactable() {
|
15099
|
+
return super.isCompactable();
|
15100
|
+
}
|
15031
15101
|
/**
|
15032
15102
|
* Converts a JSON-LD structure to an object of this type.
|
15033
15103
|
* @param json The JSON-LD structure to convert.
|
@@ -15245,7 +15315,7 @@ export class Create extends Activity {
|
|
15245
15315
|
...options,
|
15246
15316
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15247
15317
|
};
|
15248
|
-
if (options.format == null) {
|
15318
|
+
if (options.format == null && this.isCompactable()) {
|
15249
15319
|
const result = await super.toJsonLd({
|
15250
15320
|
...options,
|
15251
15321
|
format: undefined,
|
@@ -15314,6 +15384,9 @@ export class Create extends Activity {
|
|
15314
15384
|
}
|
15315
15385
|
return compacted;
|
15316
15386
|
}
|
15387
|
+
isCompactable() {
|
15388
|
+
return super.isCompactable();
|
15389
|
+
}
|
15317
15390
|
/**
|
15318
15391
|
* Converts a JSON-LD structure to an object of this type.
|
15319
15392
|
* @param json The JSON-LD structure to convert.
|
@@ -15441,7 +15514,7 @@ export class Delete extends Activity {
|
|
15441
15514
|
...options,
|
15442
15515
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15443
15516
|
};
|
15444
|
-
if (options.format == null) {
|
15517
|
+
if (options.format == null && this.isCompactable()) {
|
15445
15518
|
const result = await super.toJsonLd({
|
15446
15519
|
...options,
|
15447
15520
|
format: undefined,
|
@@ -15510,6 +15583,9 @@ export class Delete extends Activity {
|
|
15510
15583
|
}
|
15511
15584
|
return compacted;
|
15512
15585
|
}
|
15586
|
+
isCompactable() {
|
15587
|
+
return super.isCompactable();
|
15588
|
+
}
|
15513
15589
|
/**
|
15514
15590
|
* Converts a JSON-LD structure to an object of this type.
|
15515
15591
|
* @param json The JSON-LD structure to convert.
|
@@ -15636,7 +15712,7 @@ export class Dislike extends Activity {
|
|
15636
15712
|
...options,
|
15637
15713
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
15638
15714
|
};
|
15639
|
-
if (options.format == null) {
|
15715
|
+
if (options.format == null && this.isCompactable()) {
|
15640
15716
|
const result = await super.toJsonLd({
|
15641
15717
|
...options,
|
15642
15718
|
format: undefined,
|
@@ -15689,6 +15765,9 @@ export class Dislike extends Activity {
|
|
15689
15765
|
}
|
15690
15766
|
return compacted;
|
15691
15767
|
}
|
15768
|
+
isCompactable() {
|
15769
|
+
return super.isCompactable();
|
15770
|
+
}
|
15692
15771
|
/**
|
15693
15772
|
* Converts a JSON-LD structure to an object of this type.
|
15694
15773
|
* @param json The JSON-LD structure to convert.
|
@@ -16035,7 +16114,7 @@ export class Endpoints {
|
|
16035
16114
|
...options,
|
16036
16115
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16037
16116
|
};
|
16038
|
-
if (options.format == null) {
|
16117
|
+
if (options.format == null && this.isCompactable()) {
|
16039
16118
|
const result = {};
|
16040
16119
|
// deno-lint-ignore no-unused-vars
|
16041
16120
|
let compactItems;
|
@@ -16177,6 +16256,9 @@ export class Endpoints {
|
|
16177
16256
|
}
|
16178
16257
|
return compacted;
|
16179
16258
|
}
|
16259
|
+
isCompactable() {
|
16260
|
+
return true;
|
16261
|
+
}
|
16180
16262
|
/**
|
16181
16263
|
* Converts a JSON-LD structure to an object of this type.
|
16182
16264
|
* @param json The JSON-LD structure to convert.
|
@@ -16445,7 +16527,7 @@ export class Event extends Object {
|
|
16445
16527
|
...options,
|
16446
16528
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16447
16529
|
};
|
16448
|
-
if (options.format == null) {
|
16530
|
+
if (options.format == null && this.isCompactable()) {
|
16449
16531
|
const result = await super.toJsonLd({
|
16450
16532
|
...options,
|
16451
16533
|
format: undefined,
|
@@ -16498,6 +16580,9 @@ export class Event extends Object {
|
|
16498
16580
|
}
|
16499
16581
|
return compacted;
|
16500
16582
|
}
|
16583
|
+
isCompactable() {
|
16584
|
+
return super.isCompactable();
|
16585
|
+
}
|
16501
16586
|
/**
|
16502
16587
|
* Converts a JSON-LD structure to an object of this type.
|
16503
16588
|
* @param json The JSON-LD structure to convert.
|
@@ -16626,7 +16711,7 @@ export class Flag extends Activity {
|
|
16626
16711
|
...options,
|
16627
16712
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16628
16713
|
};
|
16629
|
-
if (options.format == null) {
|
16714
|
+
if (options.format == null && this.isCompactable()) {
|
16630
16715
|
const result = await super.toJsonLd({
|
16631
16716
|
...options,
|
16632
16717
|
format: undefined,
|
@@ -16679,6 +16764,9 @@ export class Flag extends Activity {
|
|
16679
16764
|
}
|
16680
16765
|
return compacted;
|
16681
16766
|
}
|
16767
|
+
isCompactable() {
|
16768
|
+
return super.isCompactable();
|
16769
|
+
}
|
16682
16770
|
/**
|
16683
16771
|
* Converts a JSON-LD structure to an object of this type.
|
16684
16772
|
* @param json The JSON-LD structure to convert.
|
@@ -16808,7 +16896,7 @@ export class Follow extends Activity {
|
|
16808
16896
|
...options,
|
16809
16897
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
16810
16898
|
};
|
16811
|
-
if (options.format == null) {
|
16899
|
+
if (options.format == null && this.isCompactable()) {
|
16812
16900
|
const result = await super.toJsonLd({
|
16813
16901
|
...options,
|
16814
16902
|
format: undefined,
|
@@ -16861,6 +16949,9 @@ export class Follow extends Activity {
|
|
16861
16949
|
}
|
16862
16950
|
return compacted;
|
16863
16951
|
}
|
16952
|
+
isCompactable() {
|
16953
|
+
return super.isCompactable();
|
16954
|
+
}
|
16864
16955
|
/**
|
16865
16956
|
* Converts a JSON-LD structure to an object of this type.
|
16866
16957
|
* @param json The JSON-LD structure to convert.
|
@@ -18375,9 +18466,7 @@ export class Group extends Object {
|
|
18375
18466
|
...options,
|
18376
18467
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
18377
18468
|
};
|
18378
|
-
if (options.format == null &&
|
18379
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf == null ||
|
18380
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length < 1)) {
|
18469
|
+
if (options.format == null && this.isCompactable()) {
|
18381
18470
|
const result = await super.toJsonLd({
|
18382
18471
|
...options,
|
18383
18472
|
format: undefined,
|
@@ -18914,6 +19003,12 @@ export class Group extends Object {
|
|
18914
19003
|
}
|
18915
19004
|
return compacted;
|
18916
19005
|
}
|
19006
|
+
isCompactable() {
|
19007
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf != null &&
|
19008
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length > 0)
|
19009
|
+
return false;
|
19010
|
+
return super.isCompactable();
|
19011
|
+
}
|
18917
19012
|
/**
|
18918
19013
|
* Converts a JSON-LD structure to an object of this type.
|
18919
19014
|
* @param json The JSON-LD structure to convert.
|
@@ -19992,9 +20087,7 @@ export class Link {
|
|
19992
20087
|
...options,
|
19993
20088
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
19994
20089
|
};
|
19995
|
-
if (options.format == null &&
|
19996
|
-
(this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav == null ||
|
19997
|
-
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav.length < 1)) {
|
20090
|
+
if (options.format == null && this.isCompactable()) {
|
19998
20091
|
const result = {};
|
19999
20092
|
// deno-lint-ignore no-unused-vars
|
20000
20093
|
let compactItems;
|
@@ -20201,6 +20294,12 @@ export class Link {
|
|
20201
20294
|
}
|
20202
20295
|
return compacted;
|
20203
20296
|
}
|
20297
|
+
isCompactable() {
|
20298
|
+
if (this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav != null &&
|
20299
|
+
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav.length > 0)
|
20300
|
+
return false;
|
20301
|
+
return true;
|
20302
|
+
}
|
20204
20303
|
/**
|
20205
20304
|
* Converts a JSON-LD structure to an object of this type.
|
20206
20305
|
* @param json The JSON-LD structure to convert.
|
@@ -20623,7 +20722,7 @@ export class Hashtag extends Link {
|
|
20623
20722
|
...options,
|
20624
20723
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
20625
20724
|
};
|
20626
|
-
if (options.format == null) {
|
20725
|
+
if (options.format == null && this.isCompactable()) {
|
20627
20726
|
const result = await super.toJsonLd({
|
20628
20727
|
...options,
|
20629
20728
|
format: undefined,
|
@@ -20661,6 +20760,9 @@ export class Hashtag extends Link {
|
|
20661
20760
|
}
|
20662
20761
|
return compacted;
|
20663
20762
|
}
|
20763
|
+
isCompactable() {
|
20764
|
+
return super.isCompactable();
|
20765
|
+
}
|
20664
20766
|
/**
|
20665
20767
|
* Converts a JSON-LD structure to an object of this type.
|
20666
20768
|
* @param json The JSON-LD structure to convert.
|
@@ -20787,7 +20889,7 @@ export class Image extends Document {
|
|
20787
20889
|
...options,
|
20788
20890
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
20789
20891
|
};
|
20790
|
-
if (options.format == null) {
|
20892
|
+
if (options.format == null && this.isCompactable()) {
|
20791
20893
|
const result = await super.toJsonLd({
|
20792
20894
|
...options,
|
20793
20895
|
format: undefined,
|
@@ -20834,6 +20936,9 @@ export class Image extends Document {
|
|
20834
20936
|
}
|
20835
20937
|
return compacted;
|
20836
20938
|
}
|
20939
|
+
isCompactable() {
|
20940
|
+
return super.isCompactable();
|
20941
|
+
}
|
20837
20942
|
/**
|
20838
20943
|
* Converts a JSON-LD structure to an object of this type.
|
20839
20944
|
* @param json The JSON-LD structure to convert.
|
@@ -20962,7 +21067,7 @@ export class Offer extends Activity {
|
|
20962
21067
|
...options,
|
20963
21068
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
20964
21069
|
};
|
20965
|
-
if (options.format == null) {
|
21070
|
+
if (options.format == null && this.isCompactable()) {
|
20966
21071
|
const result = await super.toJsonLd({
|
20967
21072
|
...options,
|
20968
21073
|
format: undefined,
|
@@ -21015,6 +21120,9 @@ export class Offer extends Activity {
|
|
21015
21120
|
}
|
21016
21121
|
return compacted;
|
21017
21122
|
}
|
21123
|
+
isCompactable() {
|
21124
|
+
return super.isCompactable();
|
21125
|
+
}
|
21018
21126
|
/**
|
21019
21127
|
* Converts a JSON-LD structure to an object of this type.
|
21020
21128
|
* @param json The JSON-LD structure to convert.
|
@@ -21145,7 +21253,7 @@ export class Invite extends Offer {
|
|
21145
21253
|
...options,
|
21146
21254
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21147
21255
|
};
|
21148
|
-
if (options.format == null) {
|
21256
|
+
if (options.format == null && this.isCompactable()) {
|
21149
21257
|
const result = await super.toJsonLd({
|
21150
21258
|
...options,
|
21151
21259
|
format: undefined,
|
@@ -21198,6 +21306,9 @@ export class Invite extends Offer {
|
|
21198
21306
|
}
|
21199
21307
|
return compacted;
|
21200
21308
|
}
|
21309
|
+
isCompactable() {
|
21310
|
+
return super.isCompactable();
|
21311
|
+
}
|
21201
21312
|
/**
|
21202
21313
|
* Converts a JSON-LD structure to an object of this type.
|
21203
21314
|
* @param json The JSON-LD structure to convert.
|
@@ -21325,7 +21436,7 @@ export class Join extends Activity {
|
|
21325
21436
|
...options,
|
21326
21437
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21327
21438
|
};
|
21328
|
-
if (options.format == null) {
|
21439
|
+
if (options.format == null && this.isCompactable()) {
|
21329
21440
|
const result = await super.toJsonLd({
|
21330
21441
|
...options,
|
21331
21442
|
format: undefined,
|
@@ -21378,6 +21489,9 @@ export class Join extends Activity {
|
|
21378
21489
|
}
|
21379
21490
|
return compacted;
|
21380
21491
|
}
|
21492
|
+
isCompactable() {
|
21493
|
+
return super.isCompactable();
|
21494
|
+
}
|
21381
21495
|
/**
|
21382
21496
|
* Converts a JSON-LD structure to an object of this type.
|
21383
21497
|
* @param json The JSON-LD structure to convert.
|
@@ -21505,7 +21619,7 @@ export class Leave extends Activity {
|
|
21505
21619
|
...options,
|
21506
21620
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21507
21621
|
};
|
21508
|
-
if (options.format == null) {
|
21622
|
+
if (options.format == null && this.isCompactable()) {
|
21509
21623
|
const result = await super.toJsonLd({
|
21510
21624
|
...options,
|
21511
21625
|
format: undefined,
|
@@ -21558,6 +21672,9 @@ export class Leave extends Activity {
|
|
21558
21672
|
}
|
21559
21673
|
return compacted;
|
21560
21674
|
}
|
21675
|
+
isCompactable() {
|
21676
|
+
return super.isCompactable();
|
21677
|
+
}
|
21561
21678
|
/**
|
21562
21679
|
* Converts a JSON-LD structure to an object of this type.
|
21563
21680
|
* @param json The JSON-LD structure to convert.
|
@@ -21685,7 +21802,7 @@ export class Like extends Activity {
|
|
21685
21802
|
...options,
|
21686
21803
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21687
21804
|
};
|
21688
|
-
if (options.format == null) {
|
21805
|
+
if (options.format == null && this.isCompactable()) {
|
21689
21806
|
const result = await super.toJsonLd({
|
21690
21807
|
...options,
|
21691
21808
|
format: undefined,
|
@@ -21738,6 +21855,9 @@ export class Like extends Activity {
|
|
21738
21855
|
}
|
21739
21856
|
return compacted;
|
21740
21857
|
}
|
21858
|
+
isCompactable() {
|
21859
|
+
return super.isCompactable();
|
21860
|
+
}
|
21741
21861
|
/**
|
21742
21862
|
* Converts a JSON-LD structure to an object of this type.
|
21743
21863
|
* @param json The JSON-LD structure to convert.
|
@@ -21864,7 +21984,7 @@ export class Listen extends Activity {
|
|
21864
21984
|
...options,
|
21865
21985
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
21866
21986
|
};
|
21867
|
-
if (options.format == null) {
|
21987
|
+
if (options.format == null && this.isCompactable()) {
|
21868
21988
|
const result = await super.toJsonLd({
|
21869
21989
|
...options,
|
21870
21990
|
format: undefined,
|
@@ -21917,6 +22037,9 @@ export class Listen extends Activity {
|
|
21917
22037
|
}
|
21918
22038
|
return compacted;
|
21919
22039
|
}
|
22040
|
+
isCompactable() {
|
22041
|
+
return super.isCompactable();
|
22042
|
+
}
|
21920
22043
|
/**
|
21921
22044
|
* Converts a JSON-LD structure to an object of this type.
|
21922
22045
|
* @param json The JSON-LD structure to convert.
|
@@ -22043,7 +22166,7 @@ export class Mention extends Link {
|
|
22043
22166
|
...options,
|
22044
22167
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22045
22168
|
};
|
22046
|
-
if (options.format == null) {
|
22169
|
+
if (options.format == null && this.isCompactable()) {
|
22047
22170
|
const result = await super.toJsonLd({
|
22048
22171
|
...options,
|
22049
22172
|
format: undefined,
|
@@ -22079,6 +22202,9 @@ export class Mention extends Link {
|
|
22079
22202
|
}
|
22080
22203
|
return compacted;
|
22081
22204
|
}
|
22205
|
+
isCompactable() {
|
22206
|
+
return super.isCompactable();
|
22207
|
+
}
|
22082
22208
|
/**
|
22083
22209
|
* Converts a JSON-LD structure to an object of this type.
|
22084
22210
|
* @param json The JSON-LD structure to convert.
|
@@ -22207,7 +22333,7 @@ export class Move extends Activity {
|
|
22207
22333
|
...options,
|
22208
22334
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22209
22335
|
};
|
22210
|
-
if (options.format == null) {
|
22336
|
+
if (options.format == null && this.isCompactable()) {
|
22211
22337
|
const result = await super.toJsonLd({
|
22212
22338
|
...options,
|
22213
22339
|
format: undefined,
|
@@ -22260,6 +22386,9 @@ export class Move extends Activity {
|
|
22260
22386
|
}
|
22261
22387
|
return compacted;
|
22262
22388
|
}
|
22389
|
+
isCompactable() {
|
22390
|
+
return super.isCompactable();
|
22391
|
+
}
|
22263
22392
|
/**
|
22264
22393
|
* Converts a JSON-LD structure to an object of this type.
|
22265
22394
|
* @param json The JSON-LD structure to convert.
|
@@ -22387,7 +22516,7 @@ export class Note extends Object {
|
|
22387
22516
|
...options,
|
22388
22517
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22389
22518
|
};
|
22390
|
-
if (options.format == null) {
|
22519
|
+
if (options.format == null && this.isCompactable()) {
|
22391
22520
|
const result = await super.toJsonLd({
|
22392
22521
|
...options,
|
22393
22522
|
format: undefined,
|
@@ -22452,6 +22581,9 @@ export class Note extends Object {
|
|
22452
22581
|
}
|
22453
22582
|
return compacted;
|
22454
22583
|
}
|
22584
|
+
isCompactable() {
|
22585
|
+
return super.isCompactable();
|
22586
|
+
}
|
22455
22587
|
/**
|
22456
22588
|
* Converts a JSON-LD structure to an object of this type.
|
22457
22589
|
* @param json The JSON-LD structure to convert.
|
@@ -22666,7 +22798,7 @@ export class OrderedCollection extends Collection {
|
|
22666
22798
|
...options,
|
22667
22799
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
22668
22800
|
};
|
22669
|
-
if (options.format == null) {
|
22801
|
+
if (options.format == null && this.isCompactable()) {
|
22670
22802
|
const result = await super.toJsonLd({
|
22671
22803
|
...options,
|
22672
22804
|
format: undefined,
|
@@ -22768,6 +22900,9 @@ export class OrderedCollection extends Collection {
|
|
22768
22900
|
}
|
22769
22901
|
return compacted;
|
22770
22902
|
}
|
22903
|
+
isCompactable() {
|
22904
|
+
return super.isCompactable();
|
22905
|
+
}
|
22771
22906
|
/**
|
22772
22907
|
* Converts a JSON-LD structure to an object of this type.
|
22773
22908
|
* @param json The JSON-LD structure to convert.
|
@@ -23116,7 +23251,7 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
23116
23251
|
...options,
|
23117
23252
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
23118
23253
|
};
|
23119
|
-
if (options.format == null) {
|
23254
|
+
if (options.format == null && this.isCompactable()) {
|
23120
23255
|
const result = await super.toJsonLd({
|
23121
23256
|
...options,
|
23122
23257
|
format: undefined,
|
@@ -23240,6 +23375,9 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
23240
23375
|
}
|
23241
23376
|
return compacted;
|
23242
23377
|
}
|
23378
|
+
isCompactable() {
|
23379
|
+
return super.isCompactable();
|
23380
|
+
}
|
23243
23381
|
/**
|
23244
23382
|
* Converts a JSON-LD structure to an object of this type.
|
23245
23383
|
* @param json The JSON-LD structure to convert.
|
@@ -24879,9 +25017,7 @@ export class Organization extends Object {
|
|
24879
25017
|
...options,
|
24880
25018
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
24881
25019
|
};
|
24882
|
-
if (options.format == null &&
|
24883
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf == null ||
|
24884
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length < 1)) {
|
25020
|
+
if (options.format == null && this.isCompactable()) {
|
24885
25021
|
const result = await super.toJsonLd({
|
24886
25022
|
...options,
|
24887
25023
|
format: undefined,
|
@@ -25418,6 +25554,12 @@ export class Organization extends Object {
|
|
25418
25554
|
}
|
25419
25555
|
return compacted;
|
25420
25556
|
}
|
25557
|
+
isCompactable() {
|
25558
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf != null &&
|
25559
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length > 0)
|
25560
|
+
return false;
|
25561
|
+
return super.isCompactable();
|
25562
|
+
}
|
25421
25563
|
/**
|
25422
25564
|
* Converts a JSON-LD structure to an object of this type.
|
25423
25565
|
* @param json The JSON-LD structure to convert.
|
@@ -26087,7 +26229,7 @@ export class Page extends Document {
|
|
26087
26229
|
...options,
|
26088
26230
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
26089
26231
|
};
|
26090
|
-
if (options.format == null) {
|
26232
|
+
if (options.format == null && this.isCompactable()) {
|
26091
26233
|
const result = await super.toJsonLd({
|
26092
26234
|
...options,
|
26093
26235
|
format: undefined,
|
@@ -26140,6 +26282,9 @@ export class Page extends Document {
|
|
26140
26282
|
}
|
26141
26283
|
return compacted;
|
26142
26284
|
}
|
26285
|
+
isCompactable() {
|
26286
|
+
return super.isCompactable();
|
26287
|
+
}
|
26143
26288
|
/**
|
26144
26289
|
* Converts a JSON-LD structure to an object of this type.
|
26145
26290
|
* @param json The JSON-LD structure to convert.
|
@@ -27654,9 +27799,7 @@ export class Person extends Object {
|
|
27654
27799
|
...options,
|
27655
27800
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
27656
27801
|
};
|
27657
|
-
if (options.format == null &&
|
27658
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf == null ||
|
27659
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length < 1)) {
|
27802
|
+
if (options.format == null && this.isCompactable()) {
|
27660
27803
|
const result = await super.toJsonLd({
|
27661
27804
|
...options,
|
27662
27805
|
format: undefined,
|
@@ -28193,6 +28336,12 @@ export class Person extends Object {
|
|
28193
28336
|
}
|
28194
28337
|
return compacted;
|
28195
28338
|
}
|
28339
|
+
isCompactable() {
|
28340
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf != null &&
|
28341
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length > 0)
|
28342
|
+
return false;
|
28343
|
+
return super.isCompactable();
|
28344
|
+
}
|
28196
28345
|
/**
|
28197
28346
|
* Converts a JSON-LD structure to an object of this type.
|
28198
28347
|
* @param json The JSON-LD structure to convert.
|
@@ -29052,7 +29201,7 @@ export class Place extends Object {
|
|
29052
29201
|
...options,
|
29053
29202
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
29054
29203
|
};
|
29055
|
-
if (options.format == null) {
|
29204
|
+
if (options.format == null && this.isCompactable()) {
|
29056
29205
|
const result = await super.toJsonLd({
|
29057
29206
|
...options,
|
29058
29207
|
format: undefined,
|
@@ -29240,6 +29389,9 @@ export class Place extends Object {
|
|
29240
29389
|
}
|
29241
29390
|
return compacted;
|
29242
29391
|
}
|
29392
|
+
isCompactable() {
|
29393
|
+
return super.isCompactable();
|
29394
|
+
}
|
29243
29395
|
/**
|
29244
29396
|
* Converts a JSON-LD structure to an object of this type.
|
29245
29397
|
* @param json The JSON-LD structure to convert.
|
@@ -29604,7 +29756,7 @@ export class Profile extends Object {
|
|
29604
29756
|
...options,
|
29605
29757
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
29606
29758
|
};
|
29607
|
-
if (options.format == null) {
|
29759
|
+
if (options.format == null && this.isCompactable()) {
|
29608
29760
|
const result = await super.toJsonLd({
|
29609
29761
|
...options,
|
29610
29762
|
format: undefined,
|
@@ -29682,6 +29834,9 @@ export class Profile extends Object {
|
|
29682
29834
|
}
|
29683
29835
|
return compacted;
|
29684
29836
|
}
|
29837
|
+
isCompactable() {
|
29838
|
+
return super.isCompactable();
|
29839
|
+
}
|
29685
29840
|
/**
|
29686
29841
|
* Converts a JSON-LD structure to an object of this type.
|
29687
29842
|
* @param json The JSON-LD structure to convert.
|
@@ -30064,7 +30219,7 @@ export class Question extends IntransitiveActivity {
|
|
30064
30219
|
...options,
|
30065
30220
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
30066
30221
|
};
|
30067
|
-
if (options.format == null) {
|
30222
|
+
if (options.format == null && this.isCompactable()) {
|
30068
30223
|
const result = await super.toJsonLd({
|
30069
30224
|
...options,
|
30070
30225
|
format: undefined,
|
@@ -30227,6 +30382,9 @@ export class Question extends IntransitiveActivity {
|
|
30227
30382
|
}
|
30228
30383
|
return compacted;
|
30229
30384
|
}
|
30385
|
+
isCompactable() {
|
30386
|
+
return super.isCompactable();
|
30387
|
+
}
|
30230
30388
|
/**
|
30231
30389
|
* Converts a JSON-LD structure to an object of this type.
|
30232
30390
|
* @param json The JSON-LD structure to convert.
|
@@ -30473,7 +30631,7 @@ export class Read extends Activity {
|
|
30473
30631
|
...options,
|
30474
30632
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
30475
30633
|
};
|
30476
|
-
if (options.format == null) {
|
30634
|
+
if (options.format == null && this.isCompactable()) {
|
30477
30635
|
const result = await super.toJsonLd({
|
30478
30636
|
...options,
|
30479
30637
|
format: undefined,
|
@@ -30526,6 +30684,9 @@ export class Read extends Activity {
|
|
30526
30684
|
}
|
30527
30685
|
return compacted;
|
30528
30686
|
}
|
30687
|
+
isCompactable() {
|
30688
|
+
return super.isCompactable();
|
30689
|
+
}
|
30529
30690
|
/**
|
30530
30691
|
* Converts a JSON-LD structure to an object of this type.
|
30531
30692
|
* @param json The JSON-LD structure to convert.
|
@@ -30653,7 +30814,7 @@ export class Reject extends Activity {
|
|
30653
30814
|
...options,
|
30654
30815
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
30655
30816
|
};
|
30656
|
-
if (options.format == null) {
|
30817
|
+
if (options.format == null && this.isCompactable()) {
|
30657
30818
|
const result = await super.toJsonLd({
|
30658
30819
|
...options,
|
30659
30820
|
format: undefined,
|
@@ -30706,6 +30867,9 @@ export class Reject extends Activity {
|
|
30706
30867
|
}
|
30707
30868
|
return compacted;
|
30708
30869
|
}
|
30870
|
+
isCompactable() {
|
30871
|
+
return super.isCompactable();
|
30872
|
+
}
|
30709
30873
|
/**
|
30710
30874
|
* Converts a JSON-LD structure to an object of this type.
|
30711
30875
|
* @param json The JSON-LD structure to convert.
|
@@ -31195,7 +31359,7 @@ export class Relationship extends Object {
|
|
31195
31359
|
...options,
|
31196
31360
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
31197
31361
|
};
|
31198
|
-
if (options.format == null) {
|
31362
|
+
if (options.format == null && this.isCompactable()) {
|
31199
31363
|
const result = await super.toJsonLd({
|
31200
31364
|
...options,
|
31201
31365
|
format: undefined,
|
@@ -31323,6 +31487,9 @@ export class Relationship extends Object {
|
|
31323
31487
|
}
|
31324
31488
|
return compacted;
|
31325
31489
|
}
|
31490
|
+
isCompactable() {
|
31491
|
+
return super.isCompactable();
|
31492
|
+
}
|
31326
31493
|
/**
|
31327
31494
|
* Converts a JSON-LD structure to an object of this type.
|
31328
31495
|
* @param json The JSON-LD structure to convert.
|
@@ -31547,7 +31714,7 @@ export class Remove extends Activity {
|
|
31547
31714
|
...options,
|
31548
31715
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
31549
31716
|
};
|
31550
|
-
if (options.format == null) {
|
31717
|
+
if (options.format == null && this.isCompactable()) {
|
31551
31718
|
const result = await super.toJsonLd({
|
31552
31719
|
...options,
|
31553
31720
|
format: undefined,
|
@@ -31600,6 +31767,9 @@ export class Remove extends Activity {
|
|
31600
31767
|
}
|
31601
31768
|
return compacted;
|
31602
31769
|
}
|
31770
|
+
isCompactable() {
|
31771
|
+
return super.isCompactable();
|
31772
|
+
}
|
31603
31773
|
/**
|
31604
31774
|
* Converts a JSON-LD structure to an object of this type.
|
31605
31775
|
* @param json The JSON-LD structure to convert.
|
@@ -33114,9 +33284,7 @@ export class Service extends Object {
|
|
33114
33284
|
...options,
|
33115
33285
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
33116
33286
|
};
|
33117
|
-
if (options.format == null &&
|
33118
|
-
(this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf == null ||
|
33119
|
-
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length < 1)) {
|
33287
|
+
if (options.format == null && this.isCompactable()) {
|
33120
33288
|
const result = await super.toJsonLd({
|
33121
33289
|
...options,
|
33122
33290
|
format: undefined,
|
@@ -33653,6 +33821,12 @@ export class Service extends Object {
|
|
33653
33821
|
}
|
33654
33822
|
return compacted;
|
33655
33823
|
}
|
33824
|
+
isCompactable() {
|
33825
|
+
if (this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf != null &&
|
33826
|
+
this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf.length > 0)
|
33827
|
+
return false;
|
33828
|
+
return super.isCompactable();
|
33829
|
+
}
|
33656
33830
|
/**
|
33657
33831
|
* Converts a JSON-LD structure to an object of this type.
|
33658
33832
|
* @param json The JSON-LD structure to convert.
|
@@ -34436,9 +34610,7 @@ export class Source {
|
|
34436
34610
|
...options,
|
34437
34611
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
34438
34612
|
};
|
34439
|
-
if (options.format == null &&
|
34440
|
-
(this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz == null ||
|
34441
|
-
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz.length < 1)) {
|
34613
|
+
if (options.format == null && this.isCompactable()) {
|
34442
34614
|
const result = {};
|
34443
34615
|
// deno-lint-ignore no-unused-vars
|
34444
34616
|
let compactItems;
|
@@ -34509,6 +34681,12 @@ export class Source {
|
|
34509
34681
|
}
|
34510
34682
|
return compacted;
|
34511
34683
|
}
|
34684
|
+
isCompactable() {
|
34685
|
+
if (this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz != null &&
|
34686
|
+
this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz.length > 0)
|
34687
|
+
return false;
|
34688
|
+
return true;
|
34689
|
+
}
|
34512
34690
|
/**
|
34513
34691
|
* Converts a JSON-LD structure to an object of this type.
|
34514
34692
|
* @param json The JSON-LD structure to convert.
|
@@ -34697,7 +34875,7 @@ export class TentativeAccept extends Accept {
|
|
34697
34875
|
...options,
|
34698
34876
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
34699
34877
|
};
|
34700
|
-
if (options.format == null) {
|
34878
|
+
if (options.format == null && this.isCompactable()) {
|
34701
34879
|
const result = await super.toJsonLd({
|
34702
34880
|
...options,
|
34703
34881
|
format: undefined,
|
@@ -34750,6 +34928,9 @@ export class TentativeAccept extends Accept {
|
|
34750
34928
|
}
|
34751
34929
|
return compacted;
|
34752
34930
|
}
|
34931
|
+
isCompactable() {
|
34932
|
+
return super.isCompactable();
|
34933
|
+
}
|
34753
34934
|
/**
|
34754
34935
|
* Converts a JSON-LD structure to an object of this type.
|
34755
34936
|
* @param json The JSON-LD structure to convert.
|
@@ -34877,7 +35058,7 @@ export class TentativeReject extends Reject {
|
|
34877
35058
|
...options,
|
34878
35059
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
34879
35060
|
};
|
34880
|
-
if (options.format == null) {
|
35061
|
+
if (options.format == null && this.isCompactable()) {
|
34881
35062
|
const result = await super.toJsonLd({
|
34882
35063
|
...options,
|
34883
35064
|
format: undefined,
|
@@ -34930,6 +35111,9 @@ export class TentativeReject extends Reject {
|
|
34930
35111
|
}
|
34931
35112
|
return compacted;
|
34932
35113
|
}
|
35114
|
+
isCompactable() {
|
35115
|
+
return super.isCompactable();
|
35116
|
+
}
|
34933
35117
|
/**
|
34934
35118
|
* Converts a JSON-LD structure to an object of this type.
|
34935
35119
|
* @param json The JSON-LD structure to convert.
|
@@ -35088,7 +35272,7 @@ export class Tombstone extends Object {
|
|
35088
35272
|
...options,
|
35089
35273
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35090
35274
|
};
|
35091
|
-
if (options.format == null) {
|
35275
|
+
if (options.format == null && this.isCompactable()) {
|
35092
35276
|
const result = await super.toJsonLd({
|
35093
35277
|
...options,
|
35094
35278
|
format: undefined,
|
@@ -35163,6 +35347,9 @@ export class Tombstone extends Object {
|
|
35163
35347
|
}
|
35164
35348
|
return compacted;
|
35165
35349
|
}
|
35350
|
+
isCompactable() {
|
35351
|
+
return super.isCompactable();
|
35352
|
+
}
|
35166
35353
|
/**
|
35167
35354
|
* Converts a JSON-LD structure to an object of this type.
|
35168
35355
|
* @param json The JSON-LD structure to convert.
|
@@ -35316,7 +35503,7 @@ export class Travel extends IntransitiveActivity {
|
|
35316
35503
|
...options,
|
35317
35504
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35318
35505
|
};
|
35319
|
-
if (options.format == null) {
|
35506
|
+
if (options.format == null && this.isCompactable()) {
|
35320
35507
|
const result = await super.toJsonLd({
|
35321
35508
|
...options,
|
35322
35509
|
format: undefined,
|
@@ -35369,6 +35556,9 @@ export class Travel extends IntransitiveActivity {
|
|
35369
35556
|
}
|
35370
35557
|
return compacted;
|
35371
35558
|
}
|
35559
|
+
isCompactable() {
|
35560
|
+
return super.isCompactable();
|
35561
|
+
}
|
35372
35562
|
/**
|
35373
35563
|
* Converts a JSON-LD structure to an object of this type.
|
35374
35564
|
* @param json The JSON-LD structure to convert.
|
@@ -35501,7 +35691,7 @@ export class Undo extends Activity {
|
|
35501
35691
|
...options,
|
35502
35692
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35503
35693
|
};
|
35504
|
-
if (options.format == null) {
|
35694
|
+
if (options.format == null && this.isCompactable()) {
|
35505
35695
|
const result = await super.toJsonLd({
|
35506
35696
|
...options,
|
35507
35697
|
format: undefined,
|
@@ -35554,6 +35744,9 @@ export class Undo extends Activity {
|
|
35554
35744
|
}
|
35555
35745
|
return compacted;
|
35556
35746
|
}
|
35747
|
+
isCompactable() {
|
35748
|
+
return super.isCompactable();
|
35749
|
+
}
|
35557
35750
|
/**
|
35558
35751
|
* Converts a JSON-LD structure to an object of this type.
|
35559
35752
|
* @param json The JSON-LD structure to convert.
|
@@ -35684,7 +35877,7 @@ export class Update extends Activity {
|
|
35684
35877
|
...options,
|
35685
35878
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35686
35879
|
};
|
35687
|
-
if (options.format == null) {
|
35880
|
+
if (options.format == null && this.isCompactable()) {
|
35688
35881
|
const result = await super.toJsonLd({
|
35689
35882
|
...options,
|
35690
35883
|
format: undefined,
|
@@ -35753,6 +35946,9 @@ export class Update extends Activity {
|
|
35753
35946
|
}
|
35754
35947
|
return compacted;
|
35755
35948
|
}
|
35949
|
+
isCompactable() {
|
35950
|
+
return super.isCompactable();
|
35951
|
+
}
|
35756
35952
|
/**
|
35757
35953
|
* Converts a JSON-LD structure to an object of this type.
|
35758
35954
|
* @param json The JSON-LD structure to convert.
|
@@ -35879,7 +36075,7 @@ export class Video extends Document {
|
|
35879
36075
|
...options,
|
35880
36076
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
35881
36077
|
};
|
35882
|
-
if (options.format == null) {
|
36078
|
+
if (options.format == null && this.isCompactable()) {
|
35883
36079
|
const result = await super.toJsonLd({
|
35884
36080
|
...options,
|
35885
36081
|
format: undefined,
|
@@ -35932,6 +36128,9 @@ export class Video extends Document {
|
|
35932
36128
|
}
|
35933
36129
|
return compacted;
|
35934
36130
|
}
|
36131
|
+
isCompactable() {
|
36132
|
+
return super.isCompactable();
|
36133
|
+
}
|
35935
36134
|
/**
|
35936
36135
|
* Converts a JSON-LD structure to an object of this type.
|
35937
36136
|
* @param json The JSON-LD structure to convert.
|
@@ -36058,7 +36257,7 @@ export class View extends Activity {
|
|
36058
36257
|
...options,
|
36059
36258
|
contextLoader: options.contextLoader ?? fetchDocumentLoader,
|
36060
36259
|
};
|
36061
|
-
if (options.format == null) {
|
36260
|
+
if (options.format == null && this.isCompactable()) {
|
36062
36261
|
const result = await super.toJsonLd({
|
36063
36262
|
...options,
|
36064
36263
|
format: undefined,
|
@@ -36111,6 +36310,9 @@ export class View extends Activity {
|
|
36111
36310
|
}
|
36112
36311
|
return compacted;
|
36113
36312
|
}
|
36313
|
+
isCompactable() {
|
36314
|
+
return super.isCompactable();
|
36315
|
+
}
|
36114
36316
|
/**
|
36115
36317
|
* Converts a JSON-LD structure to an object of this type.
|
36116
36318
|
* @param json The JSON-LD structure to convert.
|