@gooddata/sdk-code-schemas 11.29.0-alpha.5 → 11.29.0-alpha.7
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/esm/sdk-code-schemas.d.ts +567 -59
- package/esm/v1/metadata.d.ts +185 -42
- package/esm/v1/metadata.d.ts.map +1 -1
- package/esm/v1/metadata.json +325 -4
- package/esm/v1/schema.d.ts +325 -2
- package/esm/v1/schema.d.ts.map +1 -1
- package/package.json +4 -4
package/esm/v1/metadata.json
CHANGED
|
@@ -2369,7 +2369,7 @@
|
|
|
2369
2369
|
"properties": {
|
|
2370
2370
|
"type": {
|
|
2371
2371
|
"type": "string",
|
|
2372
|
-
"enum": ["date_filter", "attribute_filter", "filter_group"]
|
|
2372
|
+
"enum": ["date_filter", "attribute_filter", "text_filter", "filter_group"]
|
|
2373
2373
|
}
|
|
2374
2374
|
},
|
|
2375
2375
|
"required": ["type"],
|
|
@@ -2402,6 +2402,10 @@
|
|
|
2402
2402
|
"if": { "properties": { "type": { "const": "attribute_filter" } } },
|
|
2403
2403
|
"then": { "$ref": "#/$defs/dashboardAttributeFilter" }
|
|
2404
2404
|
},
|
|
2405
|
+
{
|
|
2406
|
+
"if": { "properties": { "type": { "const": "text_filter" } } },
|
|
2407
|
+
"then": { "$ref": "#/$defs/dashboardTextFilter" }
|
|
2408
|
+
},
|
|
2405
2409
|
{
|
|
2406
2410
|
"if": { "properties": { "type": { "const": "filter_group" } } },
|
|
2407
2411
|
"then": { "$ref": "#/$defs/dashboardFilterGroup" }
|
|
@@ -2817,7 +2821,7 @@
|
|
|
2817
2821
|
"properties": {
|
|
2818
2822
|
"type": {
|
|
2819
2823
|
"type": "string",
|
|
2820
|
-
"enum": ["date_filter", "attribute_filter", "filter_group"]
|
|
2824
|
+
"enum": ["date_filter", "attribute_filter", "text_filter", "filter_group"]
|
|
2821
2825
|
}
|
|
2822
2826
|
},
|
|
2823
2827
|
"required": ["type"],
|
|
@@ -2850,6 +2854,10 @@
|
|
|
2850
2854
|
"if": { "properties": { "type": { "const": "attribute_filter" } } },
|
|
2851
2855
|
"then": { "$ref": "#/$defs/dashboardAttributeFilter" }
|
|
2852
2856
|
},
|
|
2857
|
+
{
|
|
2858
|
+
"if": { "properties": { "type": { "const": "text_filter" } } },
|
|
2859
|
+
"then": { "$ref": "#/$defs/dashboardTextFilter" }
|
|
2860
|
+
},
|
|
2853
2861
|
{
|
|
2854
2862
|
"if": { "properties": { "type": { "const": "filter_group" } } },
|
|
2855
2863
|
"then": { "$ref": "#/$defs/dashboardFilterGroup" }
|
|
@@ -3170,6 +3178,215 @@
|
|
|
3170
3178
|
"mode": "property"
|
|
3171
3179
|
}
|
|
3172
3180
|
},
|
|
3181
|
+
"dashboardTextFilter": {
|
|
3182
|
+
"type": "object",
|
|
3183
|
+
"title": "Dashboard text filter",
|
|
3184
|
+
"description": "A dashboard text filter",
|
|
3185
|
+
"additionalProperties": false,
|
|
3186
|
+
"properties": {
|
|
3187
|
+
"title": { "type": "string", "description": "Optional title of the filter" },
|
|
3188
|
+
"using": {
|
|
3189
|
+
"description": "Attribute or label to use in this filter.",
|
|
3190
|
+
"oneOf": [
|
|
3191
|
+
{ "$ref": "#/$defs/attributeIdentifier" },
|
|
3192
|
+
{ "$ref": "#/$defs/labelIdentifier" }
|
|
3193
|
+
],
|
|
3194
|
+
"$semantic": { "type": "one_attribute_item_only" }
|
|
3195
|
+
},
|
|
3196
|
+
"case_sensitive": { "type": "boolean" },
|
|
3197
|
+
"display_as": {
|
|
3198
|
+
"type": "string",
|
|
3199
|
+
"description": "Configures the label used for representing attribute filter elements in UI.",
|
|
3200
|
+
"$ref": "#/$defs/displayAsLabelIdentifier"
|
|
3201
|
+
},
|
|
3202
|
+
"mode": {
|
|
3203
|
+
"type": "string",
|
|
3204
|
+
"enum": ["readonly", "hidden", "active"],
|
|
3205
|
+
"description": "Setting filter mode to readonly will disable the filter. Setting it to hidden will hide the filter from the dashboard. Setting it to active will enable the filter."
|
|
3206
|
+
},
|
|
3207
|
+
"parents": {
|
|
3208
|
+
"type": "array",
|
|
3209
|
+
"description": "An ids of the parent local attribute, text, or date filter",
|
|
3210
|
+
"uniqueItems": true,
|
|
3211
|
+
"items": {
|
|
3212
|
+
"oneOf": [
|
|
3213
|
+
{
|
|
3214
|
+
"type": "string",
|
|
3215
|
+
"title": "Local attribute filter",
|
|
3216
|
+
"description": "Local attribute, text, or date filter to use as parent",
|
|
3217
|
+
"$semantic": {
|
|
3218
|
+
"type": "reference",
|
|
3219
|
+
"sources": [
|
|
3220
|
+
"current.dashboard.attribute_filter.localId",
|
|
3221
|
+
"current.dashboard.text_filter.localId",
|
|
3222
|
+
"current.dashboard.date_filter.localId"
|
|
3223
|
+
]
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
"type": "object",
|
|
3228
|
+
"title": "Local date filter",
|
|
3229
|
+
"properties": {
|
|
3230
|
+
"using": {
|
|
3231
|
+
"type": "string",
|
|
3232
|
+
"description": "Local date filter to use as parent",
|
|
3233
|
+
"$semantic": {
|
|
3234
|
+
"type": "reference",
|
|
3235
|
+
"source": "current.dashboard.date_filter.localId"
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
"common": {
|
|
3239
|
+
"type": "boolean",
|
|
3240
|
+
"description": "Whether the parent filter is common date or special date"
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
"required": ["using", "common"]
|
|
3244
|
+
}
|
|
3245
|
+
]
|
|
3246
|
+
}
|
|
3247
|
+
},
|
|
3248
|
+
"metric_filters": {
|
|
3249
|
+
"type": "array",
|
|
3250
|
+
"description": "An id of the attributes, labels, facts or metrics to validate the filter by",
|
|
3251
|
+
"uniqueItems": true,
|
|
3252
|
+
"items": {
|
|
3253
|
+
"type": "string",
|
|
3254
|
+
"$semantic": {
|
|
3255
|
+
"type": "reference",
|
|
3256
|
+
"sources": ["attribute.id", "label.id", "fact.id", "metric.id"],
|
|
3257
|
+
"typePrefix": true
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
},
|
|
3262
|
+
"oneOf": [
|
|
3263
|
+
{
|
|
3264
|
+
"properties": {
|
|
3265
|
+
"title": { "type": "string", "description": "Optional title of the filter" },
|
|
3266
|
+
"type": { "type": "string", "enum": ["text_filter"] },
|
|
3267
|
+
"using": {
|
|
3268
|
+
"description": "Attribute or label to use in this filter.",
|
|
3269
|
+
"oneOf": [
|
|
3270
|
+
{ "$ref": "#/$defs/attributeIdentifier" },
|
|
3271
|
+
{ "$ref": "#/$defs/labelIdentifier" }
|
|
3272
|
+
],
|
|
3273
|
+
"$semantic": { "type": "one_attribute_item_only" }
|
|
3274
|
+
},
|
|
3275
|
+
"condition": { "enum": ["is", "isNot"] },
|
|
3276
|
+
"values": { "type": "array", "items": { "type": ["string", "null"] } },
|
|
3277
|
+
"case_sensitive": { "type": "boolean" },
|
|
3278
|
+
"display_as": {
|
|
3279
|
+
"type": "string",
|
|
3280
|
+
"description": "Configures the label used for representing attribute filter elements in UI.",
|
|
3281
|
+
"$ref": "#/$defs/displayAsLabelIdentifier"
|
|
3282
|
+
},
|
|
3283
|
+
"mode": {
|
|
3284
|
+
"type": "string",
|
|
3285
|
+
"enum": ["readonly", "hidden", "active"],
|
|
3286
|
+
"description": "Setting filter mode to readonly will disable the filter. Setting it to hidden will hide the filter from the dashboard. Setting it to active will enable the filter."
|
|
3287
|
+
},
|
|
3288
|
+
"parents": {
|
|
3289
|
+
"type": "array",
|
|
3290
|
+
"description": "An ids of the parent local attribute, text, or date filter",
|
|
3291
|
+
"uniqueItems": true,
|
|
3292
|
+
"items": {
|
|
3293
|
+
"oneOf": [
|
|
3294
|
+
{
|
|
3295
|
+
"type": "string",
|
|
3296
|
+
"title": "Local attribute filter",
|
|
3297
|
+
"description": "Local attribute, text, or date filter to use as parent",
|
|
3298
|
+
"$semantic": {
|
|
3299
|
+
"type": "reference",
|
|
3300
|
+
"sources": [
|
|
3301
|
+
"current.dashboard.attribute_filter.localId",
|
|
3302
|
+
"current.dashboard.text_filter.localId",
|
|
3303
|
+
"current.dashboard.date_filter.localId"
|
|
3304
|
+
]
|
|
3305
|
+
}
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
"type": "object",
|
|
3309
|
+
"title": "Local date filter",
|
|
3310
|
+
"properties": {
|
|
3311
|
+
"using": {
|
|
3312
|
+
"type": "string",
|
|
3313
|
+
"description": "Local date filter to use as parent",
|
|
3314
|
+
"$semantic": {
|
|
3315
|
+
"type": "reference",
|
|
3316
|
+
"source": "current.dashboard.date_filter.localId"
|
|
3317
|
+
}
|
|
3318
|
+
},
|
|
3319
|
+
"common": {
|
|
3320
|
+
"type": "boolean",
|
|
3321
|
+
"description": "Whether the parent filter is common date or special date"
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
"required": ["using", "common"]
|
|
3325
|
+
}
|
|
3326
|
+
]
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"metric_filters": {
|
|
3330
|
+
"type": "array",
|
|
3331
|
+
"description": "An id of the attributes, labels, facts or metrics to validate the filter by",
|
|
3332
|
+
"uniqueItems": true,
|
|
3333
|
+
"items": {
|
|
3334
|
+
"type": "string",
|
|
3335
|
+
"$semantic": {
|
|
3336
|
+
"type": "reference",
|
|
3337
|
+
"sources": ["attribute.id", "label.id", "fact.id", "metric.id"],
|
|
3338
|
+
"typePrefix": true
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
},
|
|
3343
|
+
"required": ["type", "using", "condition", "values"]
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
"properties": {
|
|
3347
|
+
"title": { "type": "string", "description": "Optional title of the filter" },
|
|
3348
|
+
"type": { "type": "string", "enum": ["text_filter"] },
|
|
3349
|
+
"using": {
|
|
3350
|
+
"description": "Attribute or label to use in this filter.",
|
|
3351
|
+
"oneOf": [
|
|
3352
|
+
{ "$ref": "#/$defs/attributeIdentifier" },
|
|
3353
|
+
{ "$ref": "#/$defs/labelIdentifier" }
|
|
3354
|
+
],
|
|
3355
|
+
"$semantic": { "type": "one_attribute_item_only" }
|
|
3356
|
+
},
|
|
3357
|
+
"condition": {
|
|
3358
|
+
"enum": [
|
|
3359
|
+
"contains",
|
|
3360
|
+
"doesNotContain",
|
|
3361
|
+
"startsWith",
|
|
3362
|
+
"doesNotStartWith",
|
|
3363
|
+
"endsWith",
|
|
3364
|
+
"doesNotEndWith"
|
|
3365
|
+
]
|
|
3366
|
+
},
|
|
3367
|
+
"value": { "type": "string" },
|
|
3368
|
+
"case_sensitive": { "type": "boolean" },
|
|
3369
|
+
"display_as": {
|
|
3370
|
+
"type": "string",
|
|
3371
|
+
"description": "Configures the label used for representing attribute filter elements in UI.",
|
|
3372
|
+
"$ref": "#/$defs/displayAsLabelIdentifier"
|
|
3373
|
+
},
|
|
3374
|
+
"mode": {
|
|
3375
|
+
"type": "string",
|
|
3376
|
+
"enum": ["readonly", "hidden", "active"],
|
|
3377
|
+
"description": "Setting filter mode to readonly will disable the filter. Setting it to hidden will hide the filter from the dashboard. Setting it to active will enable the filter."
|
|
3378
|
+
}
|
|
3379
|
+
},
|
|
3380
|
+
"required": ["type", "using", "condition", "value"]
|
|
3381
|
+
}
|
|
3382
|
+
],
|
|
3383
|
+
"required": ["type", "using", "condition"],
|
|
3384
|
+
"$semantic": {
|
|
3385
|
+
"type": "definition",
|
|
3386
|
+
"source": "current.dashboard.text_filter.localId",
|
|
3387
|
+
"mode": "property"
|
|
3388
|
+
}
|
|
3389
|
+
},
|
|
3173
3390
|
"dashboardFilterGroup": {
|
|
3174
3391
|
"type": "object",
|
|
3175
3392
|
"title": "Dashboard filter group",
|
|
@@ -3194,7 +3411,10 @@
|
|
|
3194
3411
|
"patternProperties": {
|
|
3195
3412
|
"^(?!\\.)[.A-Za-z0-9_-]{1,255}$": {
|
|
3196
3413
|
"properties": {
|
|
3197
|
-
"type": {
|
|
3414
|
+
"type": {
|
|
3415
|
+
"type": "string",
|
|
3416
|
+
"enum": ["date_filter", "attribute_filter", "text_filter"]
|
|
3417
|
+
}
|
|
3198
3418
|
},
|
|
3199
3419
|
"required": ["type"],
|
|
3200
3420
|
"allOf": [
|
|
@@ -3225,6 +3445,10 @@
|
|
|
3225
3445
|
{
|
|
3226
3446
|
"if": { "properties": { "type": { "const": "attribute_filter" } } },
|
|
3227
3447
|
"then": { "$ref": "#/$defs/dashboardAttributeFilter" }
|
|
3448
|
+
},
|
|
3449
|
+
{
|
|
3450
|
+
"if": { "properties": { "type": { "const": "text_filter" } } },
|
|
3451
|
+
"then": { "$ref": "#/$defs/dashboardTextFilter" }
|
|
3228
3452
|
}
|
|
3229
3453
|
]
|
|
3230
3454
|
}
|
|
@@ -3260,6 +3484,10 @@
|
|
|
3260
3484
|
},
|
|
3261
3485
|
"then": { "$ref": "#/$defs/queryAttributeFilter" }
|
|
3262
3486
|
},
|
|
3487
|
+
{
|
|
3488
|
+
"if": { "properties": { "type": { "enum": ["text_filter"] } }, "required": ["type"] },
|
|
3489
|
+
"then": { "$ref": "#/$defs/queryTextFilter" }
|
|
3490
|
+
},
|
|
3263
3491
|
{
|
|
3264
3492
|
"if": {
|
|
3265
3493
|
"properties": { "type": { "enum": ["metric_value_filter"] } },
|
|
@@ -3279,7 +3507,13 @@
|
|
|
3279
3507
|
"properties": {
|
|
3280
3508
|
"type": {
|
|
3281
3509
|
"type": "string",
|
|
3282
|
-
"enum": [
|
|
3510
|
+
"enum": [
|
|
3511
|
+
"date_filter",
|
|
3512
|
+
"attribute_filter",
|
|
3513
|
+
"text_filter",
|
|
3514
|
+
"metric_value_filter",
|
|
3515
|
+
"ranking_filter"
|
|
3516
|
+
]
|
|
3283
3517
|
}
|
|
3284
3518
|
},
|
|
3285
3519
|
"required": ["type"]
|
|
@@ -3522,6 +3756,93 @@
|
|
|
3522
3756
|
}
|
|
3523
3757
|
]
|
|
3524
3758
|
},
|
|
3759
|
+
"queryTextFilter": {
|
|
3760
|
+
"title": "Text Filter",
|
|
3761
|
+
"type": "object",
|
|
3762
|
+
"additionalProperties": false,
|
|
3763
|
+
"properties": {
|
|
3764
|
+
"type": { "type": "string", "enum": ["text_filter"] },
|
|
3765
|
+
"using": {
|
|
3766
|
+
"description": "Attribute or label to use in this filter.",
|
|
3767
|
+
"oneOf": [
|
|
3768
|
+
{ "$ref": "#/$defs/attributeIdentifier" },
|
|
3769
|
+
{ "$ref": "#/$defs/labelIdentifier" }
|
|
3770
|
+
]
|
|
3771
|
+
},
|
|
3772
|
+
"case_sensitive": { "type": "boolean" },
|
|
3773
|
+
"display_as": {
|
|
3774
|
+
"type": "string",
|
|
3775
|
+
"description": "Configures the label used for representing attribute filter elements in UI.",
|
|
3776
|
+
"$ref": "#/$defs/displayAsLabelIdentifier"
|
|
3777
|
+
}
|
|
3778
|
+
},
|
|
3779
|
+
"oneOf": [
|
|
3780
|
+
{
|
|
3781
|
+
"properties": {
|
|
3782
|
+
"type": { "type": "string", "enum": ["text_filter"] },
|
|
3783
|
+
"using": {
|
|
3784
|
+
"description": "Attribute or label to use in this filter.",
|
|
3785
|
+
"oneOf": [
|
|
3786
|
+
{ "$ref": "#/$defs/attributeIdentifier" },
|
|
3787
|
+
{ "$ref": "#/$defs/labelIdentifier" }
|
|
3788
|
+
]
|
|
3789
|
+
},
|
|
3790
|
+
"condition": { "enum": ["is", "isNot"] },
|
|
3791
|
+
"values": { "type": "array", "items": { "type": ["string", "null"] } },
|
|
3792
|
+
"case_sensitive": { "type": "boolean" },
|
|
3793
|
+
"display_as": {
|
|
3794
|
+
"type": "string",
|
|
3795
|
+
"description": "Configures the label used for representing attribute filter elements in UI.",
|
|
3796
|
+
"$ref": "#/$defs/displayAsLabelIdentifier"
|
|
3797
|
+
}
|
|
3798
|
+
},
|
|
3799
|
+
"required": ["type", "using", "condition", "values"]
|
|
3800
|
+
},
|
|
3801
|
+
{
|
|
3802
|
+
"properties": {
|
|
3803
|
+
"type": { "type": "string", "enum": ["text_filter"] },
|
|
3804
|
+
"using": {
|
|
3805
|
+
"description": "Attribute or label to use in this filter.",
|
|
3806
|
+
"oneOf": [
|
|
3807
|
+
{ "$ref": "#/$defs/attributeIdentifier" },
|
|
3808
|
+
{ "$ref": "#/$defs/labelIdentifier" }
|
|
3809
|
+
]
|
|
3810
|
+
},
|
|
3811
|
+
"condition": {
|
|
3812
|
+
"enum": [
|
|
3813
|
+
"contains",
|
|
3814
|
+
"doesNotContain",
|
|
3815
|
+
"startsWith",
|
|
3816
|
+
"doesNotStartWith",
|
|
3817
|
+
"endsWith",
|
|
3818
|
+
"doesNotEndWith"
|
|
3819
|
+
]
|
|
3820
|
+
},
|
|
3821
|
+
"value": { "type": "string" },
|
|
3822
|
+
"case_sensitive": { "type": "boolean" },
|
|
3823
|
+
"display_as": {
|
|
3824
|
+
"type": "string",
|
|
3825
|
+
"description": "Configures the label used for representing attribute filter elements in UI.",
|
|
3826
|
+
"$ref": "#/$defs/displayAsLabelIdentifier"
|
|
3827
|
+
}
|
|
3828
|
+
},
|
|
3829
|
+
"required": ["type", "using", "condition", "value"]
|
|
3830
|
+
}
|
|
3831
|
+
],
|
|
3832
|
+
"required": ["type", "using", "condition"],
|
|
3833
|
+
"$semantic": [
|
|
3834
|
+
{
|
|
3835
|
+
"type": "definition",
|
|
3836
|
+
"source": "current.widget.visualization.query.filter.localId",
|
|
3837
|
+
"mode": "property"
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"type": "definition",
|
|
3841
|
+
"source": "current.widget.visualization.query.field.filter.localId",
|
|
3842
|
+
"mode": "property"
|
|
3843
|
+
}
|
|
3844
|
+
]
|
|
3845
|
+
},
|
|
3525
3846
|
"queryMetricValueFilter": {
|
|
3526
3847
|
"title": "Metric Value Filter",
|
|
3527
3848
|
"type": "object",
|