rebilly-js-sdk 60.1.0 → 60.2.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [60.1.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v60.0.4...rebilly-js-sdk-v60.1.0) (2025-07-23)
1
+ ## [60.2.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v60.1.0...rebilly-js-sdk-v60.2.0) (2025-07-25)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#13742](https://github.com/Rebilly/rebilly/issues/13742)) ([37a50ad](https://github.com/Rebilly/rebilly/commit/37a50adc3a4064464dac658e7c7679e0048418a4))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#13800](https://github.com/Rebilly/rebilly/issues/13800)) ([7f48310](https://github.com/Rebilly/rebilly/commit/7f48310cbcb1e2d56dbcde9c51d6c32343b79f2f))
@@ -487,6 +487,25 @@ declare namespace rebilly {
487
487
  type PutJournalEntryResponse = operations['PutJournalEntry']['responses']['201']['content']['application/json']
488
488
  type PutJournalEntryResponsePromise = Promise<{fields: PutJournalEntryResponse}>
489
489
 
490
+ type GetJournalRecordCollectionBCRequest = operations['GetJournalRecordCollectionBC']['parameters'] & { id: string }
491
+
492
+ type GetJournalRecordCollectionBCResponse = operations['GetJournalRecordCollectionBC']['responses']['200']['content']['application/json']
493
+ type GetJournalRecordCollectionBCResponsePromise = Promise<{fields: GetJournalRecordCollectionBCResponse}>
494
+ type PostJournalRecordBCRequest = operations['PostJournalRecordBC']['requestBody']['content']['application/json']
495
+ type CreateJournalRecordBCRequest = { id?: string, data: PostJournalRecordBCRequest, expand?: string }
496
+ type PostJournalRecordBCResponse = operations['PostJournalRecordBC']['responses']['201']['content']['application/json']
497
+ type PostJournalRecordBCResponsePromise = Promise<{fields: PostJournalRecordBCResponse}>
498
+
499
+ type GetJournalRecordBCRequest = { id: string,journalRecordId: string }
500
+
501
+ type GetJournalRecordBCResponse = operations['GetJournalRecordBC']['responses']['200']['content']['application/json']
502
+ type GetJournalRecordBCResponsePromise = Promise<{fields: GetJournalRecordBCResponse}>
503
+ type PutJournalRecordBCRequest = operations['PutJournalRecordBC']['requestBody']['content']['application/json']
504
+ type PutJournalRecordBCResponse = operations['PutJournalRecordBC']['responses']['201']['content']['application/json']
505
+ type PutJournalRecordBCResponsePromise = Promise<{fields: PutJournalRecordBCResponse}>
506
+ type DeleteJournalRecordBCResponse = operations['DeleteJournalRecordBC']['responses']['204']
507
+ type DeleteJournalRecordBCResponsePromise = Promise<{fields: DeleteJournalRecordBCResponse}>
508
+
490
509
  type GetJournalRecordCollectionRequest = operations['GetJournalRecordCollection']['parameters']["query"] & (operations['GetJournalRecordCollection']['parameters'] extends {path: {}} ? operations['GetJournalRecordCollection']['parameters']["path"] : {}) & { id: string }
491
510
 
492
511
  type GetJournalRecordCollectionResponse = operations['GetJournalRecordCollection']['responses']['200']['content']['application/json'][0]
@@ -3094,6 +3113,34 @@ export interface corePaths {
3094
3113
  };
3095
3114
  };
3096
3115
  "/journal-entries/{id}/records": {
3116
+ /** Retrieves a list of journal records. */
3117
+ get: operations["GetJournalRecordCollectionBC"];
3118
+ /** Creates a journal record. */
3119
+ post: operations["PostJournalRecordBC"];
3120
+ parameters: {
3121
+ path: {
3122
+ /** ID of the resource. */
3123
+ id: coreComponents["parameters"]["resourceId"];
3124
+ };
3125
+ };
3126
+ };
3127
+ "/journal-entries/{id}/records/{journalRecordId}": {
3128
+ /** Retrieves a journal record with a specified ID. */
3129
+ get: operations["GetJournalRecordBC"];
3130
+ /** Creates or updates (upsert) a journal record. */
3131
+ put: operations["PutJournalRecordBC"];
3132
+ /** Deletes a journal record. */
3133
+ delete: operations["DeleteJournalRecordBC"];
3134
+ parameters: {
3135
+ path: {
3136
+ /** ID of the resource. */
3137
+ id: coreComponents["parameters"]["resourceId"];
3138
+ /** ID of the journal record. */
3139
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
3140
+ };
3141
+ };
3142
+ };
3143
+ "/journal-entries/{id}/records/": {
3097
3144
  /** Retrieves a list of journal records. */
3098
3145
  get: operations["GetJournalRecordCollection"];
3099
3146
  /** Creates a journal record. */
@@ -3105,7 +3152,7 @@ export interface corePaths {
3105
3152
  };
3106
3153
  };
3107
3154
  };
3108
- "/journal-entries/{id}/records/{journalRecordId}": {
3155
+ "/journal-entries/{id}/records/{journalRecordId}/": {
3109
3156
  /** Retrieves a journal record with a specified ID. */
3110
3157
  get: operations["GetJournalRecord"];
3111
3158
  /** Creates or updates (upsert) a journal record. */
@@ -6919,22 +6966,22 @@ export interface coreComponents {
6919
6966
  /** Table data. Each array element represents a table row. */
6920
6967
  data?: {
6921
6968
  attribute?: string;
6922
- previousValue?: string;
6923
- newValue?: string;
6969
+ previousValue?: { [key: string]: any };
6970
+ newValue?: { [key: string]: any };
6924
6971
  }[];
6925
6972
  };
6926
6973
  TwoColumnsTimelineTable: coreComponents["schemas"]["TimelineTable"] & {
6927
6974
  /** Table data. Each array element represents a table row. */
6928
6975
  data?: {
6929
6976
  attribute?: string;
6930
- value?: string;
6977
+ value?: { [key: string]: any };
6931
6978
  }[];
6932
6979
  };
6933
6980
  OneColumnTimelineTable: coreComponents["schemas"]["TimelineTable"] & {
6934
6981
  /** Table data. Each array element represents a table row. */
6935
6982
  data?: {
6936
6983
  attribute?: string;
6937
- value?: string;
6984
+ value?: { [key: string]: any };
6938
6985
  }[];
6939
6986
  };
6940
6987
  ListTimelineTable: coreComponents["schemas"]["TimelineTable"] & {
@@ -8980,6 +9027,10 @@ export interface coreComponents {
8980
9027
  /** Type of link. */
8981
9028
  rel?: "self" | "customer" | "invoice";
8982
9029
  }[];
9030
+ /** Embedded objects that are requested by the `expand` query parameter. */
9031
+ _embedded?: {
9032
+ customer?: { [key: string]: any };
9033
+ };
8983
9034
  };
8984
9035
  /** Patch credit memo object. */
8985
9036
  PatchCreditMemo: {
@@ -28806,6 +28857,14 @@ export interface operations {
28806
28857
  offset?: coreComponents["parameters"]["collectionOffset"];
28807
28858
  /** Use this field to perform a partial search of text fields. */
28808
28859
  q?: coreComponents["parameters"]["collectionQuery"];
28860
+ /**
28861
+ * Expands a request to include embedded objects within the `_embedded`
28862
+ * property of the response. This field accepts a comma-separated list of objects.
28863
+ *
28864
+ * For more information, see
28865
+ * [Expand to include embedded objects](https://www.rebilly.com/docs/dev-docs/expand-embedded-resources).
28866
+ */
28867
+ expand?: coreComponents["parameters"]["collectionExpand"];
28809
28868
  };
28810
28869
  };
28811
28870
  responses: {
@@ -29284,6 +29343,161 @@ export interface operations {
29284
29343
  };
29285
29344
  };
29286
29345
  /** Retrieves a list of journal records. */
29346
+ GetJournalRecordCollectionBC: {
29347
+ parameters: {
29348
+ path: {
29349
+ /** ID of the resource. */
29350
+ id: coreComponents["parameters"]["resourceId"];
29351
+ };
29352
+ query: {
29353
+ /** Limits the number of collection items to be returned. */
29354
+ limit?: coreComponents["parameters"]["collectionLimit"];
29355
+ /** Specifies the starting point within the collection of items to be returned. */
29356
+ offset?: coreComponents["parameters"]["collectionOffset"];
29357
+ /**
29358
+ * Filters the collection items. This field requires
29359
+ * a special format. Use `,` for multiple allowed values. Use `;` for multiple fields.
29360
+ *
29361
+ * For more information, see
29362
+ * [Using filter with collections](https://www.rebilly.com/docs/dev-docs/search-filters).
29363
+ */
29364
+ filter?: coreComponents["parameters"]["collectionFilter"];
29365
+ /**
29366
+ * Sorts and orders the collection of items. To sort in descending
29367
+ * order, prefix with `-`. Multiple fields can be sorted by separating each with `,`.
29368
+ */
29369
+ sort?: coreComponents["parameters"]["collectionSort"];
29370
+ /**
29371
+ * Expands a request to include embedded objects within the `_embedded`
29372
+ * property of the response. This field accepts a comma-separated list of objects.
29373
+ *
29374
+ * For more information, see
29375
+ * [Expand to include embedded objects](https://www.rebilly.com/docs/dev-docs/expand-embedded-resources).
29376
+ */
29377
+ expand?: coreComponents["parameters"]["collectionExpand"];
29378
+ };
29379
+ };
29380
+ responses: {
29381
+ /** List of journal records retrieved. */
29382
+ 200: {
29383
+ headers: {};
29384
+ content: {
29385
+ "application/json": coreComponents["schemas"]["JournalRecord"][];
29386
+ };
29387
+ };
29388
+ 401: coreComponents["responses"]["Unauthorized"];
29389
+ 403: coreComponents["responses"]["Forbidden"];
29390
+ };
29391
+ };
29392
+ /** Creates a journal record. */
29393
+ PostJournalRecordBC: {
29394
+ parameters: {
29395
+ path: {
29396
+ /** ID of the resource. */
29397
+ id: coreComponents["parameters"]["resourceId"];
29398
+ };
29399
+ };
29400
+ responses: {
29401
+ /** Journal record created. */
29402
+ 201: {
29403
+ headers: {};
29404
+ content: {
29405
+ "application/json": coreComponents["schemas"]["JournalRecord"];
29406
+ };
29407
+ };
29408
+ 401: coreComponents["responses"]["Unauthorized"];
29409
+ 403: coreComponents["responses"]["Forbidden"];
29410
+ 422: coreComponents["responses"]["ValidationError"];
29411
+ 429: coreComponents["responses"]["TooManyRequests"];
29412
+ };
29413
+ /** Journal record resource. */
29414
+ requestBody: {
29415
+ content: {
29416
+ "application/json": coreComponents["schemas"]["JournalRecord"];
29417
+ };
29418
+ };
29419
+ };
29420
+ /** Retrieves a journal record with a specified ID. */
29421
+ GetJournalRecordBC: {
29422
+ parameters: {
29423
+ path: {
29424
+ /** ID of the resource. */
29425
+ id: coreComponents["parameters"]["resourceId"];
29426
+ /** ID of the journal record. */
29427
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
29428
+ };
29429
+ };
29430
+ responses: {
29431
+ /** Journal record retrieved. */
29432
+ 200: {
29433
+ content: {
29434
+ "application/json": coreComponents["schemas"]["JournalRecord"];
29435
+ };
29436
+ };
29437
+ 401: coreComponents["responses"]["Unauthorized"];
29438
+ 403: coreComponents["responses"]["Forbidden"];
29439
+ 404: coreComponents["responses"]["NotFound"];
29440
+ };
29441
+ };
29442
+ /** Creates or updates (upsert) a journal record. */
29443
+ PutJournalRecordBC: {
29444
+ parameters: {
29445
+ path: {
29446
+ /** ID of the resource. */
29447
+ id: coreComponents["parameters"]["resourceId"];
29448
+ /** ID of the journal record. */
29449
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
29450
+ };
29451
+ };
29452
+ responses: {
29453
+ /** Journal record updated. */
29454
+ 200: {
29455
+ headers: {};
29456
+ content: {
29457
+ "application/json": coreComponents["schemas"]["JournalRecord"];
29458
+ };
29459
+ };
29460
+ /** Journal record created. */
29461
+ 201: {
29462
+ headers: {};
29463
+ content: {
29464
+ "application/json": coreComponents["schemas"]["JournalRecord"];
29465
+ };
29466
+ };
29467
+ 401: coreComponents["responses"]["Unauthorized"];
29468
+ 403: coreComponents["responses"]["Forbidden"];
29469
+ 404: coreComponents["responses"]["NotFound"];
29470
+ 422: coreComponents["responses"]["ValidationError"];
29471
+ 429: coreComponents["responses"]["TooManyRequests"];
29472
+ };
29473
+ /** Journal record resource. */
29474
+ requestBody: {
29475
+ content: {
29476
+ "application/json": coreComponents["schemas"]["JournalRecord"];
29477
+ };
29478
+ };
29479
+ };
29480
+ /** Deletes a journal record. */
29481
+ DeleteJournalRecordBC: {
29482
+ parameters: {
29483
+ path: {
29484
+ /** ID of the resource. */
29485
+ id: coreComponents["parameters"]["resourceId"];
29486
+ /** ID of the journal record. */
29487
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
29488
+ };
29489
+ };
29490
+ responses: {
29491
+ /** Journal record deleted. */
29492
+ 204: never;
29493
+ 401: coreComponents["responses"]["Unauthorized"];
29494
+ 403: coreComponents["responses"]["Forbidden"];
29495
+ 404: coreComponents["responses"]["NotFound"];
29496
+ 422: coreComponents["responses"]["ValidationError"];
29497
+ 429: coreComponents["responses"]["TooManyRequests"];
29498
+ };
29499
+ };
29500
+ /** Retrieves a list of journal records. */
29287
29501
  GetJournalRecordCollection: {
29288
29502
  parameters: {
29289
29503
  path: {
@@ -40536,22 +40750,22 @@ export interface storefrontComponents {
40536
40750
  /** Table data. Each array element represents a table row. */
40537
40751
  data?: {
40538
40752
  attribute?: string;
40539
- previousValue?: string;
40540
- newValue?: string;
40753
+ previousValue?: { [key: string]: any };
40754
+ newValue?: { [key: string]: any };
40541
40755
  }[];
40542
40756
  };
40543
40757
  TwoColumnsTimelineTable: storefrontComponents["schemas"]["TimelineTable"] & {
40544
40758
  /** Table data. Each array element represents a table row. */
40545
40759
  data?: {
40546
40760
  attribute?: string;
40547
- value?: string;
40761
+ value?: { [key: string]: any };
40548
40762
  }[];
40549
40763
  };
40550
40764
  OneColumnTimelineTable: storefrontComponents["schemas"]["TimelineTable"] & {
40551
40765
  /** Table data. Each array element represents a table row. */
40552
40766
  data?: {
40553
40767
  attribute?: string;
40554
- value?: string;
40768
+ value?: { [key: string]: any };
40555
40769
  }[];
40556
40770
  };
40557
40771
  ListTimelineTable: storefrontComponents["schemas"]["TimelineTable"] & {
@@ -42597,6 +42811,10 @@ export interface storefrontComponents {
42597
42811
  /** Type of link. */
42598
42812
  rel?: "self" | "customer" | "invoice";
42599
42813
  }[];
42814
+ /** Embedded objects that are requested by the `expand` query parameter. */
42815
+ _embedded?: {
42816
+ customer?: { [key: string]: any };
42817
+ };
42600
42818
  };
42601
42819
  /** Patch credit memo object. */
42602
42820
  PatchCreditMemo: {
@@ -63070,22 +63288,22 @@ export interface reportsComponents {
63070
63288
  /** Table data. Each array element represents a table row. */
63071
63289
  data?: {
63072
63290
  attribute?: string;
63073
- previousValue?: string;
63074
- newValue?: string;
63291
+ previousValue?: { [key: string]: any };
63292
+ newValue?: { [key: string]: any };
63075
63293
  }[];
63076
63294
  };
63077
63295
  TwoColumnsTimelineTable: reportsComponents["schemas"]["TimelineTable"] & {
63078
63296
  /** Table data. Each array element represents a table row. */
63079
63297
  data?: {
63080
63298
  attribute?: string;
63081
- value?: string;
63299
+ value?: { [key: string]: any };
63082
63300
  }[];
63083
63301
  };
63084
63302
  OneColumnTimelineTable: reportsComponents["schemas"]["TimelineTable"] & {
63085
63303
  /** Table data. Each array element represents a table row. */
63086
63304
  data?: {
63087
63305
  attribute?: string;
63088
- value?: string;
63306
+ value?: { [key: string]: any };
63089
63307
  }[];
63090
63308
  };
63091
63309
  ListTimelineTable: reportsComponents["schemas"]["TimelineTable"] & {
@@ -65131,6 +65349,10 @@ export interface reportsComponents {
65131
65349
  /** Type of link. */
65132
65350
  rel?: "self" | "customer" | "invoice";
65133
65351
  }[];
65352
+ /** Embedded objects that are requested by the `expand` query parameter. */
65353
+ _embedded?: {
65354
+ customer?: { [key: string]: any };
65355
+ };
65134
65356
  };
65135
65357
  /** Patch credit memo object. */
65136
65358
  PatchCreditMemo: {
@@ -83792,7 +84014,7 @@ declare module "resources/credit-memos-resource" {
83792
84014
  export default function CreditMemosResource({ apiHandler }: {
83793
84015
  apiHandler: any;
83794
84016
  }): {
83795
- getAll({ filter, sort, limit, offset, q, }?: rebilly.GetCreditMemoCollectionRequest): rebilly.GetCreditMemoCollectionResponsePromise;
84017
+ getAll({ filter, sort, limit, offset, q, expand, }?: rebilly.GetCreditMemoCollectionRequest): rebilly.GetCreditMemoCollectionResponsePromise;
83796
84018
  create({ id, data }: rebilly.CreateCreditMemoRequest): rebilly.PostCreditMemoResponsePromise;
83797
84019
  get({ id }: {
83798
84020
  id: any;
@@ -84519,6 +84741,31 @@ declare module "resources/journal-entries-resource" {
84519
84741
  id: any;
84520
84742
  data: any;
84521
84743
  }): rebilly.PutJournalEntryResponsePromise;
84744
+ getAllRecordsBC({ id, limit, offset, filter, sort, expand, }: {
84745
+ id: any;
84746
+ limit?: any;
84747
+ offset?: any;
84748
+ filter?: any;
84749
+ sort?: any;
84750
+ expand?: any;
84751
+ }): rebilly.GetJournalRecordCollectionBCResponsePromise;
84752
+ createRecordBC({ id, data }: {
84753
+ id: any;
84754
+ data: any;
84755
+ }): any;
84756
+ getRecordBC({ id, journalRecordId }: {
84757
+ id: any;
84758
+ journalRecordId: any;
84759
+ }): rebilly.GetJournalRecordBCResponsePromise;
84760
+ updateRecordBC({ id, journalRecordId, data }: {
84761
+ id: any;
84762
+ journalRecordId: any;
84763
+ data: any;
84764
+ }): rebilly.PutJournalRecordBCResponsePromise;
84765
+ deleteRecordBC({ id, journalRecordId }: {
84766
+ id: any;
84767
+ journalRecordId: any;
84768
+ }): any;
84522
84769
  getAllRecords({ id, limit, offset, filter, sort, expand, }: rebilly.GetJournalRecordCollectionRequest): rebilly.GetJournalRecordCollectionResponsePromise;
84523
84770
  createRecord({ id, data }: {
84524
84771
  id: any;
@@ -85563,7 +85810,7 @@ declare module "resources/api-instance" {
85563
85810
  }): any;
85564
85811
  };
85565
85812
  creditMemos: {
85566
- getAll({ filter, sort, limit, offset, q, }?: rebilly.GetCreditMemoCollectionRequest): rebilly.GetCreditMemoCollectionResponsePromise;
85813
+ getAll({ filter, sort, limit, offset, q, expand, }?: rebilly.GetCreditMemoCollectionRequest): rebilly.GetCreditMemoCollectionResponsePromise;
85567
85814
  create({ id, data }: rebilly.CreateCreditMemoRequest): rebilly.PostCreditMemoResponsePromise;
85568
85815
  get({ id }: {
85569
85816
  id: any;
@@ -86202,6 +86449,31 @@ declare module "resources/api-instance" {
86202
86449
  id: any;
86203
86450
  data: any;
86204
86451
  }): rebilly.PutJournalEntryResponsePromise;
86452
+ getAllRecordsBC({ id, limit, offset, filter, sort, expand, }: {
86453
+ id: any;
86454
+ limit?: any;
86455
+ offset?: any;
86456
+ filter?: any;
86457
+ sort?: any;
86458
+ expand?: any;
86459
+ }): rebilly.GetJournalRecordCollectionBCResponsePromise;
86460
+ createRecordBC({ id, data }: {
86461
+ id: any;
86462
+ data: any;
86463
+ }): any;
86464
+ getRecordBC({ id, journalRecordId }: {
86465
+ id: any;
86466
+ journalRecordId: any;
86467
+ }): rebilly.GetJournalRecordBCResponsePromise;
86468
+ updateRecordBC({ id, journalRecordId, data }: {
86469
+ id: any;
86470
+ journalRecordId: any;
86471
+ data: any;
86472
+ }): rebilly.PutJournalRecordBCResponsePromise;
86473
+ deleteRecordBC({ id, journalRecordId }: {
86474
+ id: any;
86475
+ journalRecordId: any;
86476
+ }): any;
86205
86477
  getAllRecords({ id, limit, offset, filter, sort, expand, }: rebilly.GetJournalRecordCollectionRequest): rebilly.GetJournalRecordCollectionResponsePromise;
86206
86478
  createRecord({ id, data }: {
86207
86479
  id: any;