@go-avro/avro-js 1.6.6-rc2 → 1.6.6-rc3

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.
@@ -274,6 +274,8 @@ export interface CatalogItemUpdatePayload {
274
274
  recommended_expire_on?: number | null;
275
275
  /** Skill GUIDs; replaces the item's skills. */
276
276
  skills?: string[];
277
+ /** ProposalTerms GUIDs; replaces the item's suggested terms. */
278
+ terms?: string[];
277
279
  /** Replaces the item's payment options. */
278
280
  payment_options?: PaymentOptionInput[];
279
281
  }
@@ -284,7 +286,7 @@ export type CatalogItemCreatePayload = CatalogItemUpdatePayload & {
284
286
  /**
285
287
  * Body of `POST /job/<id>/proposal` and `PUT /proposal/<id>` (backend
286
288
  * `CreateProposal` / `UpdateProposal`); omitted fields are unchanged, and
287
- * null clears `expire_on` / `terms_version_id` / `prepay_due_date`.
289
+ * null clears `expire_on` / `prepay_due_date`.
288
290
  */
289
291
  export interface ProposalWritePayload {
290
292
  /**
@@ -292,8 +294,8 @@ export interface ProposalWritePayload {
292
294
  * null means never.
293
295
  */
294
296
  expire_on?: number | null;
295
- /** Terms version GUID; null detaches. */
296
- terms_version_id?: string | null;
297
+ /** Terms version GUIDs; replaces the attached terms (`[]` detaches all). */
298
+ terms_version_ids?: string[];
297
299
  /** Unix seconds (>= 0); null clears. */
298
300
  prepay_due_date?: number | null;
299
301
  /** Replaces the proposal's tasks (only `id` is read). */
@@ -329,8 +331,11 @@ export interface ProposalReviewTask {
329
331
  /** Body of `POST /proposal/<id>/review` (backend `ReviewProposal`). */
330
332
  export interface ProposalReviewPayload {
331
333
  tasks?: ProposalReviewTask[];
332
- /** Required when the proposal has terms and any task is accepted. */
333
- terms_version_id?: string | null;
334
+ /**
335
+ * The terms version GUIDs agreed to; must be exactly the proposal's when
336
+ * it has terms and any task is accepted.
337
+ */
338
+ terms_version_ids?: string[];
334
339
  pay_in_cash?: boolean;
335
340
  }
336
341
  /**
@@ -14,6 +14,6 @@ export interface CatalogItem {
14
14
  recommended_expire_on: number | null;
15
15
  time_created: number | null;
16
16
  time_updated: number | null;
17
- /** Skill GUIDs. */
18
17
  skills: string[];
18
+ terms: string[];
19
19
  }
@@ -6,7 +6,7 @@ export interface Proposal {
6
6
  job_id: string;
7
7
  expire_on: number | null;
8
8
  expired: boolean;
9
- terms: ProposalTermsVersion | null;
9
+ terms: ProposalTermsVersion[];
10
10
  accepted_at: number | null;
11
11
  tasks: Task[];
12
12
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "1.6.6-rc2";
1
+ export declare const AVRO_JS_VERSION = "1.6.6-rc3";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Regenerated from package.json by the `prebuild` npm hook.
3
- export const AVRO_JS_VERSION = '1.6.6-rc2';
3
+ export const AVRO_JS_VERSION = '1.6.6-rc3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "1.6.6-rc2",
3
+ "version": "1.6.6-rc3",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",