@datocms/cma-client 5.2.0-alpha.2 → 5.2.0-alpha.3

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.2.0-alpha.2', 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.2.0-alpha.3', 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
@@ -95,6 +95,7 @@ class SiteSearchSource extends BaseResource_1.default {
95
95
  'enabled',
96
96
  'build_trigger_indexing_enabled',
97
97
  'frontend_url',
98
+ 'user_agent_suffix',
98
99
  ],
99
100
  relationships: ['build_triggers'],
100
101
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -131,6 +132,7 @@ class SiteSearchSource extends BaseResource_1.default {
131
132
  'enabled',
132
133
  'build_trigger_indexing_enabled',
133
134
  'frontend_url',
135
+ 'user_agent_suffix',
134
136
  ],
135
137
  relationships: ['build_triggers'],
136
138
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -1 +1 @@
1
- {"version":3,"file":"SiteSearchSource.js","sourceRoot":"","sources":["../../../../src/generated/resources/SiteSearchSource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAA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,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,kBAA0B;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO;YAC/B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,wBAAwB,kBAAkB,QAAQ;SACxD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,kBAA0D;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACnE,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CACR,kBAA0B;QAE1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,wBAAwB,kBAAkB,EAAE;SAClD,CACF,CAAC;IACJ,CAAC;;AAlQH,mCAmQC;AAlQiB,qBAAI,GAAG,oBAA6B,CAAC"}
1
+ {"version":3,"file":"SiteSearchSource.js","sourceRoot":"","sources":["../../../../src/generated/resources/SiteSearchSource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AACpD,sEAA8C;AAI9C,MAAqB,gBAAiB,SAAQ,sBAAY;IAGxD;;;;;;;OAOG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAClC,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAs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,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACnE,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CACR,kBAA0B;QAE1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,wBAAwB,kBAAkB,EAAE;SAClD,CACF,CAAC;IACJ,CAAC;;AApQH,mCAqQC;AApQiB,qBAAI,GAAG,oBAA6B,CAAC"}
@@ -9205,6 +9205,10 @@ export type SiteSearchSource = {
9205
9205
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9206
9206
  */
9207
9207
  frontend_url: string | null;
9208
+ /**
9209
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9210
+ */
9211
+ user_agent_suffix: string | null;
9208
9212
  build_triggers: BuildTriggerData[];
9209
9213
  meta: SiteSearchSourceMeta;
9210
9214
  };
@@ -9251,6 +9255,10 @@ export type SiteSearchSourceAttributes = {
9251
9255
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9252
9256
  */
9253
9257
  frontend_url: string | null;
9258
+ /**
9259
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9260
+ */
9261
+ user_agent_suffix: string | null;
9254
9262
  };
9255
9263
  /**
9256
9264
  * JSON API links
@@ -9283,6 +9291,10 @@ export type SiteSearchSourceCreateSchema = {
9283
9291
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9284
9292
  */
9285
9293
  frontend_url: string | null;
9294
+ /**
9295
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9296
+ */
9297
+ user_agent_suffix?: string | null;
9286
9298
  build_triggers?: BuildTriggerData[];
9287
9299
  };
9288
9300
  /**
@@ -9308,6 +9320,10 @@ export type SiteSearchSourceUpdateSchema = {
9308
9320
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9309
9321
  */
9310
9322
  frontend_url?: string | null;
9323
+ /**
9324
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9325
+ */
9326
+ user_agent_suffix?: string | null;
9311
9327
  build_triggers?: BuildTriggerData[];
9312
9328
  };
9313
9329
  /**
@@ -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.2.0-alpha.2', 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.2.0-alpha.3', 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
@@ -9478,6 +9478,10 @@ export type SiteSearchSourceAttributes = {
9478
9478
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9479
9479
  */
9480
9480
  frontend_url: string | null;
9481
+ /**
9482
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9483
+ */
9484
+ user_agent_suffix: string | null;
9481
9485
  };
9482
9486
  /**
9483
9487
  * JSON API links
@@ -9547,6 +9551,10 @@ export type SiteSearchSourceCreateSchema = {
9547
9551
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9548
9552
  */
9549
9553
  frontend_url: string | null;
9554
+ /**
9555
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9556
+ */
9557
+ user_agent_suffix?: string | null;
9550
9558
  };
9551
9559
  /**
9552
9560
  * JSON API links
@@ -9593,6 +9601,10 @@ export type SiteSearchSourceUpdateSchema = {
9593
9601
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9594
9602
  */
9595
9603
  frontend_url?: string | null;
9604
+ /**
9605
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9606
+ */
9607
+ user_agent_suffix?: string | null;
9596
9608
  };
9597
9609
  /**
9598
9610
  * JSON API links
@@ -67,6 +67,7 @@ export default class SiteSearchSource extends BaseResource {
67
67
  'enabled',
68
68
  'build_trigger_indexing_enabled',
69
69
  'frontend_url',
70
+ 'user_agent_suffix',
70
71
  ],
71
72
  relationships: ['build_triggers'],
72
73
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -103,6 +104,7 @@ export default class SiteSearchSource extends BaseResource {
103
104
  'enabled',
104
105
  'build_trigger_indexing_enabled',
105
106
  'frontend_url',
107
+ 'user_agent_suffix',
106
108
  ],
107
109
  relationships: ['build_triggers'],
108
110
  })).then((body) => Utils.deserializeResponseBody(body));
@@ -1 +1 @@
1
- {"version":3,"file":"SiteSearchSource.js","sourceRoot":"","sources":["../../../../src/generated/resources/SiteSearchSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAAY;IAGxD;;;;;;;OAOG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAClC,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;SAC5B,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;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CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACnE,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CACR,kBAA0B;QAE1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,wBAAwB,kBAAkB,EAAE;SAClD,CACF,CAAC;IACJ,CAAC;;AAjQe,qBAAI,GAAG,oBAA6B,CAAC"}
1
+ {"version":3,"file":"SiteSearchSource.js","sourceRoot":"","sources":["../../../../src/generated/resources/SiteSearchSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAAY;IAGxD;;;;;;;OAOG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAClC,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;SAC5B,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,kBAA0D;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAChE,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,kBAA0B;QAE1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+C;YACvE,MAAM,EAAE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e,qBAAI,GAAG,oBAA6B,CAAC"}
@@ -9205,6 +9205,10 @@ export type SiteSearchSource = {
9205
9205
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9206
9206
  */
9207
9207
  frontend_url: string | null;
9208
+ /**
9209
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9210
+ */
9211
+ user_agent_suffix: string | null;
9208
9212
  build_triggers: BuildTriggerData[];
9209
9213
  meta: SiteSearchSourceMeta;
9210
9214
  };
@@ -9251,6 +9255,10 @@ export type SiteSearchSourceAttributes = {
9251
9255
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9252
9256
  */
9253
9257
  frontend_url: string | null;
9258
+ /**
9259
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9260
+ */
9261
+ user_agent_suffix: string | null;
9254
9262
  };
9255
9263
  /**
9256
9264
  * JSON API links
@@ -9283,6 +9291,10 @@ export type SiteSearchSourceCreateSchema = {
9283
9291
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9284
9292
  */
9285
9293
  frontend_url: string | null;
9294
+ /**
9295
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9296
+ */
9297
+ user_agent_suffix?: string | null;
9286
9298
  build_triggers?: BuildTriggerData[];
9287
9299
  };
9288
9300
  /**
@@ -9308,6 +9320,10 @@ export type SiteSearchSourceUpdateSchema = {
9308
9320
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9309
9321
  */
9310
9322
  frontend_url?: string | null;
9323
+ /**
9324
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9325
+ */
9326
+ user_agent_suffix?: string | null;
9311
9327
  build_triggers?: BuildTriggerData[];
9312
9328
  };
9313
9329
  /**
@@ -9478,6 +9478,10 @@ export type SiteSearchSourceAttributes = {
9478
9478
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9479
9479
  */
9480
9480
  frontend_url: string | null;
9481
+ /**
9482
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9483
+ */
9484
+ user_agent_suffix: string | null;
9481
9485
  };
9482
9486
  /**
9483
9487
  * JSON API links
@@ -9547,6 +9551,10 @@ export type SiteSearchSourceCreateSchema = {
9547
9551
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9548
9552
  */
9549
9553
  frontend_url: string | null;
9554
+ /**
9555
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9556
+ */
9557
+ user_agent_suffix?: string | null;
9550
9558
  };
9551
9559
  /**
9552
9560
  * JSON API links
@@ -9593,6 +9601,10 @@ export type SiteSearchSourceUpdateSchema = {
9593
9601
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9594
9602
  */
9595
9603
  frontend_url?: string | null;
9604
+ /**
9605
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9606
+ */
9607
+ user_agent_suffix?: string | null;
9596
9608
  };
9597
9609
  /**
9598
9610
  * JSON API links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.2.0-alpha.2",
3
+ "version": "5.2.0-alpha.3",
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.2.0-alpha.2",
45
+ "@datocms/dashboard-client": "^5.2.0-alpha.3",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "9f21e6bd10b741ab9b857f7e63cc4bb787eec91f"
48
+ "gitHead": "cbaad3363bbe1fa53160b9b03d76ac594fd3c798"
49
49
  }
package/resources.json CHANGED
@@ -4063,7 +4063,8 @@
4063
4063
  "name",
4064
4064
  "enabled",
4065
4065
  "build_trigger_indexing_enabled",
4066
- "frontend_url"
4066
+ "frontend_url",
4067
+ "user_agent_suffix"
4067
4068
  ],
4068
4069
  "relationships": ["build_triggers"]
4069
4070
  },
@@ -4102,7 +4103,8 @@
4102
4103
  "name",
4103
4104
  "enabled",
4104
4105
  "build_trigger_indexing_enabled",
4105
- "frontend_url"
4106
+ "frontend_url",
4107
+ "user_agent_suffix"
4106
4108
  ],
4107
4109
  "relationships": ["build_triggers"]
4108
4110
  },
@@ -9948,6 +9948,10 @@ export type SiteSearchSource = {
9948
9948
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9949
9949
  */
9950
9950
  frontend_url: string | null;
9951
+ /**
9952
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
9953
+ */
9954
+ user_agent_suffix: string | null;
9951
9955
  build_triggers: BuildTriggerData[];
9952
9956
  meta: SiteSearchSourceMeta;
9953
9957
  };
@@ -9994,6 +9998,10 @@ export type SiteSearchSourceAttributes = {
9994
9998
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
9995
9999
  */
9996
10000
  frontend_url: string | null;
10001
+ /**
10002
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
10003
+ */
10004
+ user_agent_suffix: string | null;
9997
10005
  };
9998
10006
  /**
9999
10007
  * JSON API links
@@ -10026,6 +10034,10 @@ export type SiteSearchSourceCreateSchema = {
10026
10034
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
10027
10035
  */
10028
10036
  frontend_url: string | null;
10037
+ /**
10038
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
10039
+ */
10040
+ user_agent_suffix?: string | null;
10029
10041
  build_triggers?: BuildTriggerData[];
10030
10042
  };
10031
10043
  /**
@@ -10051,6 +10063,10 @@ export type SiteSearchSourceUpdateSchema = {
10051
10063
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
10052
10064
  */
10053
10065
  frontend_url?: string | null;
10066
+ /**
10067
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
10068
+ */
10069
+ user_agent_suffix?: string | null;
10054
10070
  build_triggers?: BuildTriggerData[];
10055
10071
  };
10056
10072
  /**
@@ -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.2.0-alpha.2',
154
+ userAgent: '@datocms/cma-client v5.2.0-alpha.3',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -10087,6 +10087,10 @@ export type SiteSearchSourceAttributes = {
10087
10087
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
10088
10088
  */
10089
10089
  frontend_url: string | null;
10090
+ /**
10091
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
10092
+ */
10093
+ user_agent_suffix: string | null;
10090
10094
  };
10091
10095
  /**
10092
10096
  * JSON API links
@@ -10156,6 +10160,10 @@ export type SiteSearchSourceCreateSchema = {
10156
10160
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
10157
10161
  */
10158
10162
  frontend_url: string | null;
10163
+ /**
10164
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
10165
+ */
10166
+ user_agent_suffix?: string | null;
10159
10167
  };
10160
10168
  /**
10161
10169
  * JSON API links
@@ -10202,6 +10210,10 @@ export type SiteSearchSourceUpdateSchema = {
10202
10210
  * The public URL of the frontend. This is the starting point from which the website's spidering will start
10203
10211
  */
10204
10212
  frontend_url?: string | null;
10213
+ /**
10214
+ * Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
10215
+ */
10216
+ user_agent_suffix?: string | null;
10205
10217
  };
10206
10218
  /**
10207
10219
  * JSON API links
@@ -91,6 +91,7 @@ export default class SiteSearchSource extends BaseResource {
91
91
  'enabled',
92
92
  'build_trigger_indexing_enabled',
93
93
  'frontend_url',
94
+ 'user_agent_suffix',
94
95
  ],
95
96
  relationships: ['build_triggers'],
96
97
  },
@@ -144,6 +145,7 @@ export default class SiteSearchSource extends BaseResource {
144
145
  'enabled',
145
146
  'build_trigger_indexing_enabled',
146
147
  'frontend_url',
148
+ 'user_agent_suffix',
147
149
  ],
148
150
  relationships: ['build_triggers'],
149
151
  },