@datocms/cma-client 5.3.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ class Client {
90
90
  return this.config.baseUrl || Client.defaultBaseUrl;
91
91
  }
92
92
  request(options) {
93
- return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.3.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
93
+ return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
94
94
  ? { 'X-Environment': this.config.environment }
95
95
  : {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
96
96
  return this.jobResultsFetcher
@@ -40,7 +40,7 @@ class AuditLogEvent extends BaseResource_1.default {
40
40
  query(body) {
41
41
  return this.rawQuery(Utils.serializeRequestBody(body, {
42
42
  type: 'audit_log_query',
43
- attributes: ['filter', 'next_token', 'detailed_log'],
43
+ attributes: ['since', 'before', 'filter', 'next_token', 'detailed_log'],
44
44
  relationships: [],
45
45
  })).then((body) => Utils.deserializeResponseBody(body));
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AuditLogEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/AuditLogEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AACpD,sEAA8C;AAI9C,MAAqB,aAAc,SAAQ,sBAAY;IAGrD;;;;;;;OAOG;IACH,KAAK,CAAC,IAAuC;QAC3C,OAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,CAAC,o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CAAC,CAAC;IACL,CAAC;;AAzCH,gCA0CC;AAzCiB,kBAAI,GAAG,iBAA0B,CAAC"}
@@ -3596,6 +3596,10 @@ export type AuditLogEvent = {
3596
3596
  [k: string]: unknown;
3597
3597
  };
3598
3598
  };
3599
+ /**
3600
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3601
+ */
3602
+ impersonated?: null | boolean;
3599
3603
  meta: AuditLogEventMeta;
3600
3604
  };
3601
3605
  /**
@@ -3712,6 +3716,10 @@ export type AuditLogEventAttributes = {
3712
3716
  [k: string]: unknown;
3713
3717
  };
3714
3718
  };
3719
+ /**
3720
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3721
+ */
3722
+ impersonated?: null | boolean;
3715
3723
  };
3716
3724
  /**
3717
3725
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
@@ -3719,6 +3727,14 @@ export type AuditLogEventAttributes = {
3719
3727
  */
3720
3728
  export type AuditLogEventQuerySchema = {
3721
3729
  type?: 'audit_log_query';
3730
+ /**
3731
+ * Only return events occurred at or after this ISO 8601 datetime
3732
+ */
3733
+ since?: string;
3734
+ /**
3735
+ * Only return events occurred before this ISO 8601 datetime
3736
+ */
3737
+ before?: string;
3722
3738
  /**
3723
3739
  * An SQL-like expression to filter the events
3724
3740
  */
@@ -7777,11 +7793,37 @@ export type Upload = {
7777
7793
  }[];
7778
7794
  upload_collection: UploadCollectionData | null;
7779
7795
  creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7796
+ meta: UploadMeta;
7780
7797
  };
7781
7798
  export type UploadCreateJobSchema = Upload;
7782
7799
  export type UploadSelfTargetSchema = Upload;
7783
7800
  export type UploadDestroyTargetSchema = Upload;
7784
7801
  export type UploadUpdateJobSchema = Upload;
7802
+ /**
7803
+ * Meta attributes
7804
+ *
7805
+ * This interface was referenced by `Upload`'s JSON-Schema
7806
+ * via the `definition` "meta".
7807
+ */
7808
+ export type UploadMeta = {
7809
+ /**
7810
+ * Antivirus scan information
7811
+ */
7812
+ antivirus: {
7813
+ /**
7814
+ * Antivirus scan status of the asset
7815
+ */
7816
+ status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
7817
+ /**
7818
+ * Date of the last antivirus scan
7819
+ */
7820
+ checked_at: string | null;
7821
+ /**
7822
+ * Name of the threat detected by the antivirus scan, if any
7823
+ */
7824
+ threat_name: string | null;
7825
+ };
7826
+ };
7785
7827
  /**
7786
7828
  * JSON API data
7787
7829
  *
@@ -64,7 +64,7 @@ export class Client {
64
64
  return this.config.baseUrl || Client.defaultBaseUrl;
65
65
  }
66
66
  request(options) {
67
- return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.3.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
67
+ return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
68
68
  ? { 'X-Environment': this.config.environment }
69
69
  : {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
70
70
  return this.jobResultsFetcher
@@ -3179,6 +3179,10 @@ export type AuditLogEventAttributes = {
3179
3179
  [k: string]: unknown;
3180
3180
  };
3181
3181
  };
3182
+ /**
3183
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3184
+ */
3185
+ impersonated?: null | boolean;
3182
3186
  };
3183
3187
  /**
3184
3188
  * JSON API meta
@@ -3210,6 +3214,14 @@ export type AuditLogEventQuerySchema = {
3210
3214
  data: {
3211
3215
  type: 'audit_log_query';
3212
3216
  attributes: {
3217
+ /**
3218
+ * Only return events occurred at or after this ISO 8601 datetime
3219
+ */
3220
+ since?: string;
3221
+ /**
3222
+ * Only return events occurred before this ISO 8601 datetime
3223
+ */
3224
+ before?: string;
3213
3225
  /**
3214
3226
  * An SQL-like expression to filter the events
3215
3227
  */
@@ -7921,6 +7933,7 @@ export type Upload = {
7921
7933
  id: UploadIdentity;
7922
7934
  attributes: UploadAttributes;
7923
7935
  relationships: UploadRelationships;
7936
+ meta: UploadMeta;
7924
7937
  };
7925
7938
  /**
7926
7939
  * JSON API attributes
@@ -8111,6 +8124,31 @@ export type UploadRelationships = {
8111
8124
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
8112
8125
  };
8113
8126
  };
8127
+ /**
8128
+ * Meta attributes
8129
+ *
8130
+ * This interface was referenced by `Upload`'s JSON-Schema
8131
+ * via the `definition` "meta".
8132
+ */
8133
+ export type UploadMeta = {
8134
+ /**
8135
+ * Antivirus scan information
8136
+ */
8137
+ antivirus: {
8138
+ /**
8139
+ * Antivirus scan status of the asset
8140
+ */
8141
+ status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
8142
+ /**
8143
+ * Date of the last antivirus scan
8144
+ */
8145
+ checked_at: string | null;
8146
+ /**
8147
+ * Name of the threat detected by the antivirus scan, if any
8148
+ */
8149
+ threat_name: string | null;
8150
+ };
8151
+ };
8114
8152
  /**
8115
8153
  * JSON API data
8116
8154
  *
@@ -12,7 +12,7 @@ export default class AuditLogEvent extends BaseResource {
12
12
  query(body) {
13
13
  return this.rawQuery(Utils.serializeRequestBody(body, {
14
14
  type: 'audit_log_query',
15
- attributes: ['filter', 'next_token', 'detailed_log'],
15
+ attributes: ['since', 'before', 'filter', 'next_token', 'detailed_log'],
16
16
  relationships: [],
17
17
  })).then((body) => Utils.deserializeResponseBody(body));
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AuditLogEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/AuditLogEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAA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;;;;;;;OAOG;IACH,QAAQ,CACN,IAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI;SACL,CAAC,CAAC;IACL,CAAC;;AAxCe,kBAAI,GAAG,iBAA0B,CAAC"}
@@ -3596,6 +3596,10 @@ export type AuditLogEvent = {
3596
3596
  [k: string]: unknown;
3597
3597
  };
3598
3598
  };
3599
+ /**
3600
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3601
+ */
3602
+ impersonated?: null | boolean;
3599
3603
  meta: AuditLogEventMeta;
3600
3604
  };
3601
3605
  /**
@@ -3712,6 +3716,10 @@ export type AuditLogEventAttributes = {
3712
3716
  [k: string]: unknown;
3713
3717
  };
3714
3718
  };
3719
+ /**
3720
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3721
+ */
3722
+ impersonated?: null | boolean;
3715
3723
  };
3716
3724
  /**
3717
3725
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
@@ -3719,6 +3727,14 @@ export type AuditLogEventAttributes = {
3719
3727
  */
3720
3728
  export type AuditLogEventQuerySchema = {
3721
3729
  type?: 'audit_log_query';
3730
+ /**
3731
+ * Only return events occurred at or after this ISO 8601 datetime
3732
+ */
3733
+ since?: string;
3734
+ /**
3735
+ * Only return events occurred before this ISO 8601 datetime
3736
+ */
3737
+ before?: string;
3722
3738
  /**
3723
3739
  * An SQL-like expression to filter the events
3724
3740
  */
@@ -7777,11 +7793,37 @@ export type Upload = {
7777
7793
  }[];
7778
7794
  upload_collection: UploadCollectionData | null;
7779
7795
  creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7796
+ meta: UploadMeta;
7780
7797
  };
7781
7798
  export type UploadCreateJobSchema = Upload;
7782
7799
  export type UploadSelfTargetSchema = Upload;
7783
7800
  export type UploadDestroyTargetSchema = Upload;
7784
7801
  export type UploadUpdateJobSchema = Upload;
7802
+ /**
7803
+ * Meta attributes
7804
+ *
7805
+ * This interface was referenced by `Upload`'s JSON-Schema
7806
+ * via the `definition` "meta".
7807
+ */
7808
+ export type UploadMeta = {
7809
+ /**
7810
+ * Antivirus scan information
7811
+ */
7812
+ antivirus: {
7813
+ /**
7814
+ * Antivirus scan status of the asset
7815
+ */
7816
+ status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
7817
+ /**
7818
+ * Date of the last antivirus scan
7819
+ */
7820
+ checked_at: string | null;
7821
+ /**
7822
+ * Name of the threat detected by the antivirus scan, if any
7823
+ */
7824
+ threat_name: string | null;
7825
+ };
7826
+ };
7785
7827
  /**
7786
7828
  * JSON API data
7787
7829
  *
@@ -3179,6 +3179,10 @@ export type AuditLogEventAttributes = {
3179
3179
  [k: string]: unknown;
3180
3180
  };
3181
3181
  };
3182
+ /**
3183
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3184
+ */
3185
+ impersonated?: null | boolean;
3182
3186
  };
3183
3187
  /**
3184
3188
  * JSON API meta
@@ -3210,6 +3214,14 @@ export type AuditLogEventQuerySchema = {
3210
3214
  data: {
3211
3215
  type: 'audit_log_query';
3212
3216
  attributes: {
3217
+ /**
3218
+ * Only return events occurred at or after this ISO 8601 datetime
3219
+ */
3220
+ since?: string;
3221
+ /**
3222
+ * Only return events occurred before this ISO 8601 datetime
3223
+ */
3224
+ before?: string;
3213
3225
  /**
3214
3226
  * An SQL-like expression to filter the events
3215
3227
  */
@@ -7921,6 +7933,7 @@ export type Upload = {
7921
7933
  id: UploadIdentity;
7922
7934
  attributes: UploadAttributes;
7923
7935
  relationships: UploadRelationships;
7936
+ meta: UploadMeta;
7924
7937
  };
7925
7938
  /**
7926
7939
  * JSON API attributes
@@ -8111,6 +8124,31 @@ export type UploadRelationships = {
8111
8124
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
8112
8125
  };
8113
8126
  };
8127
+ /**
8128
+ * Meta attributes
8129
+ *
8130
+ * This interface was referenced by `Upload`'s JSON-Schema
8131
+ * via the `definition` "meta".
8132
+ */
8133
+ export type UploadMeta = {
8134
+ /**
8135
+ * Antivirus scan information
8136
+ */
8137
+ antivirus: {
8138
+ /**
8139
+ * Antivirus scan status of the asset
8140
+ */
8141
+ status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
8142
+ /**
8143
+ * Date of the last antivirus scan
8144
+ */
8145
+ checked_at: string | null;
8146
+ /**
8147
+ * Name of the threat detected by the antivirus scan, if any
8148
+ */
8149
+ threat_name: string | null;
8150
+ };
8151
+ };
8114
8152
  /**
8115
8153
  * JSON API data
8116
8154
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -42,8 +42,8 @@
42
42
  "uuid": "^9.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@datocms/dashboard-client": "^5.3.0",
45
+ "@datocms/dashboard-client": "^5.4.0",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "7fedaabd32ac2e5edf092aa105720e105e03751c"
48
+ "gitHead": "50279b385a819bc2070bdb4eea41981322573716"
49
49
  }
package/resources.json CHANGED
@@ -452,7 +452,13 @@
452
452
  "optionalRequestBody": false,
453
453
  "requestStructure": {
454
454
  "type": "audit_log_query",
455
- "attributes": ["filter", "next_token", "detailed_log"],
455
+ "attributes": [
456
+ "since",
457
+ "before",
458
+ "filter",
459
+ "next_token",
460
+ "detailed_log"
461
+ ],
456
462
  "relationships": []
457
463
  },
458
464
  "queryParamsRequired": false,
@@ -3936,6 +3936,10 @@ export type AuditLogEvent = {
3936
3936
  [k: string]: unknown;
3937
3937
  };
3938
3938
  };
3939
+ /**
3940
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3941
+ */
3942
+ impersonated?: null | boolean;
3939
3943
  meta: AuditLogEventMeta;
3940
3944
  };
3941
3945
  /**
@@ -4052,6 +4056,10 @@ export type AuditLogEventAttributes = {
4052
4056
  [k: string]: unknown;
4053
4057
  };
4054
4058
  };
4059
+ /**
4060
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
4061
+ */
4062
+ impersonated?: null | boolean;
4055
4063
  };
4056
4064
  /**
4057
4065
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
@@ -4059,6 +4067,14 @@ export type AuditLogEventAttributes = {
4059
4067
  */
4060
4068
  export type AuditLogEventQuerySchema = {
4061
4069
  type?: 'audit_log_query';
4070
+ /**
4071
+ * Only return events occurred at or after this ISO 8601 datetime
4072
+ */
4073
+ since?: string;
4074
+ /**
4075
+ * Only return events occurred before this ISO 8601 datetime
4076
+ */
4077
+ before?: string;
4062
4078
  /**
4063
4079
  * An SQL-like expression to filter the events
4064
4080
  */
@@ -8406,11 +8422,37 @@ export type Upload = {
8406
8422
  | UserData
8407
8423
  | SsoUserData
8408
8424
  | OrganizationData;
8425
+ meta: UploadMeta;
8409
8426
  };
8410
8427
  export type UploadCreateJobSchema = Upload;
8411
8428
  export type UploadSelfTargetSchema = Upload;
8412
8429
  export type UploadDestroyTargetSchema = Upload;
8413
8430
  export type UploadUpdateJobSchema = Upload;
8431
+ /**
8432
+ * Meta attributes
8433
+ *
8434
+ * This interface was referenced by `Upload`'s JSON-Schema
8435
+ * via the `definition` "meta".
8436
+ */
8437
+ export type UploadMeta = {
8438
+ /**
8439
+ * Antivirus scan information
8440
+ */
8441
+ antivirus: {
8442
+ /**
8443
+ * Antivirus scan status of the asset
8444
+ */
8445
+ status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
8446
+ /**
8447
+ * Date of the last antivirus scan
8448
+ */
8449
+ checked_at: string | null;
8450
+ /**
8451
+ * Name of the threat detected by the antivirus scan, if any
8452
+ */
8453
+ threat_name: string | null;
8454
+ };
8455
+ };
8414
8456
  /**
8415
8457
  * JSON API data
8416
8458
  *
@@ -151,7 +151,7 @@ export class Client {
151
151
  ...this.config,
152
152
  ...options,
153
153
  logFn: this.config.logFn || console.log,
154
- userAgent: '@datocms/cma-client v5.3.0',
154
+ userAgent: '@datocms/cma-client v5.4.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -3435,6 +3435,10 @@ export type AuditLogEventAttributes = {
3435
3435
  [k: string]: unknown;
3436
3436
  };
3437
3437
  };
3438
+ /**
3439
+ * Whether the action was performed during a debug (impersonation) session by DatoCMS staff
3440
+ */
3441
+ impersonated?: null | boolean;
3438
3442
  };
3439
3443
  /**
3440
3444
  * JSON API meta
@@ -3466,6 +3470,14 @@ export type AuditLogEventQuerySchema = {
3466
3470
  data: {
3467
3471
  type: 'audit_log_query';
3468
3472
  attributes: {
3473
+ /**
3474
+ * Only return events occurred at or after this ISO 8601 datetime
3475
+ */
3476
+ since?: string;
3477
+ /**
3478
+ * Only return events occurred before this ISO 8601 datetime
3479
+ */
3480
+ before?: string;
3469
3481
  /**
3470
3482
  * An SQL-like expression to filter the events
3471
3483
  */
@@ -8425,6 +8437,7 @@ export type Upload = {
8425
8437
  id: UploadIdentity;
8426
8438
  attributes: UploadAttributes;
8427
8439
  relationships: UploadRelationships;
8440
+ meta: UploadMeta;
8428
8441
  };
8429
8442
  /**
8430
8443
  * JSON API attributes
@@ -8620,6 +8633,31 @@ export type UploadRelationships = {
8620
8633
  | OrganizationData;
8621
8634
  };
8622
8635
  };
8636
+ /**
8637
+ * Meta attributes
8638
+ *
8639
+ * This interface was referenced by `Upload`'s JSON-Schema
8640
+ * via the `definition` "meta".
8641
+ */
8642
+ export type UploadMeta = {
8643
+ /**
8644
+ * Antivirus scan information
8645
+ */
8646
+ antivirus: {
8647
+ /**
8648
+ * Antivirus scan status of the asset
8649
+ */
8650
+ status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
8651
+ /**
8652
+ * Date of the last antivirus scan
8653
+ */
8654
+ checked_at: string | null;
8655
+ /**
8656
+ * Name of the threat detected by the antivirus scan, if any
8657
+ */
8658
+ threat_name: string | null;
8659
+ };
8660
+ };
8623
8661
  /**
8624
8662
  * JSON API data
8625
8663
  *
@@ -18,7 +18,7 @@ export default class AuditLogEvent extends BaseResource {
18
18
  return this.rawQuery(
19
19
  Utils.serializeRequestBody<RawApiTypes.AuditLogEventQuerySchema>(body, {
20
20
  type: 'audit_log_query',
21
- attributes: ['filter', 'next_token', 'detailed_log'],
21
+ attributes: ['since', 'before', 'filter', 'next_token', 'detailed_log'],
22
22
  relationships: [],
23
23
  }),
24
24
  ).then((body) =>