@workbuddy/cli-edge 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +132 -132
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2485,10 +2485,10 @@ function buildRequestBody(operation, values) {
2485
2485
  return;
2486
2486
  }
2487
2487
  let body;
2488
- if (typeof values.body === "string" && values.body.length > 0) {
2489
- body = JSON.parse(values.body);
2488
+ if (typeof values.rawBody === "string" && values.rawBody.length > 0) {
2489
+ body = JSON.parse(values.rawBody);
2490
2490
  }
2491
- const bodyFields = operation.options.filter((option) => option.source === "body" && option.optionKey !== "body");
2491
+ const bodyFields = operation.options.filter((option) => option.source === "body" && option.name !== "raw-body");
2492
2492
  if (bodyFields.length === 0) {
2493
2493
  return body;
2494
2494
  }
@@ -2950,13 +2950,13 @@ var operations = [
2950
2950
  description: ""
2951
2951
  },
2952
2952
  {
2953
- name: "body",
2954
- cliName: "body",
2955
- optionKey: "body",
2953
+ name: "raw-body",
2954
+ cliName: "raw-body",
2955
+ optionKey: "rawBody",
2956
2956
  source: "body",
2957
2957
  type: "object",
2958
2958
  required: false,
2959
- description: "Raw request body JSON"
2959
+ description: "Raw request body JSON (overrides individual fields)"
2960
2960
  }
2961
2961
  ],
2962
2962
  hasRequestBody: true
@@ -3008,13 +3008,13 @@ var operations = [
3008
3008
  description: ""
3009
3009
  },
3010
3010
  {
3011
- name: "body",
3012
- cliName: "body",
3013
- optionKey: "body",
3011
+ name: "raw-body",
3012
+ cliName: "raw-body",
3013
+ optionKey: "rawBody",
3014
3014
  source: "body",
3015
3015
  type: "object",
3016
3016
  required: false,
3017
- description: "Raw request body JSON"
3017
+ description: "Raw request body JSON (overrides individual fields)"
3018
3018
  }
3019
3019
  ],
3020
3020
  hasRequestBody: true
@@ -3237,13 +3237,13 @@ var operations = [
3237
3237
  description: ""
3238
3238
  },
3239
3239
  {
3240
- name: "body",
3241
- cliName: "body",
3242
- optionKey: "body",
3240
+ name: "raw-body",
3241
+ cliName: "raw-body",
3242
+ optionKey: "rawBody",
3243
3243
  source: "body",
3244
3244
  type: "object",
3245
3245
  required: false,
3246
- description: "Raw request body JSON"
3246
+ description: "Raw request body JSON (overrides individual fields)"
3247
3247
  }
3248
3248
  ],
3249
3249
  hasRequestBody: true
@@ -3440,13 +3440,13 @@ var operations = [
3440
3440
  description: ""
3441
3441
  },
3442
3442
  {
3443
- name: "body",
3444
- cliName: "body",
3445
- optionKey: "body",
3443
+ name: "raw-body",
3444
+ cliName: "raw-body",
3445
+ optionKey: "rawBody",
3446
3446
  source: "body",
3447
3447
  type: "object",
3448
3448
  required: false,
3449
- description: "Raw request body JSON"
3449
+ description: "Raw request body JSON (overrides individual fields)"
3450
3450
  }
3451
3451
  ],
3452
3452
  hasRequestBody: true
@@ -3704,13 +3704,13 @@ var operations = [
3704
3704
  description: ""
3705
3705
  },
3706
3706
  {
3707
- name: "body",
3708
- cliName: "body",
3709
- optionKey: "body",
3707
+ name: "raw-body",
3708
+ cliName: "raw-body",
3709
+ optionKey: "rawBody",
3710
3710
  source: "body",
3711
3711
  type: "object",
3712
3712
  required: false,
3713
- description: "Raw request body JSON"
3713
+ description: "Raw request body JSON (overrides individual fields)"
3714
3714
  }
3715
3715
  ],
3716
3716
  hasRequestBody: true
@@ -3847,13 +3847,13 @@ var operations = [
3847
3847
  description: ""
3848
3848
  },
3849
3849
  {
3850
- name: "body",
3851
- cliName: "body",
3852
- optionKey: "body",
3850
+ name: "raw-body",
3851
+ cliName: "raw-body",
3852
+ optionKey: "rawBody",
3853
3853
  source: "body",
3854
3854
  type: "object",
3855
3855
  required: false,
3856
- description: "Raw request body JSON"
3856
+ description: "Raw request body JSON (overrides individual fields)"
3857
3857
  }
3858
3858
  ],
3859
3859
  hasRequestBody: true
@@ -3935,13 +3935,13 @@ var operations = [
3935
3935
  description: ""
3936
3936
  },
3937
3937
  {
3938
- name: "body",
3939
- cliName: "body",
3940
- optionKey: "body",
3938
+ name: "raw-body",
3939
+ cliName: "raw-body",
3940
+ optionKey: "rawBody",
3941
3941
  source: "body",
3942
3942
  type: "object",
3943
3943
  required: false,
3944
- description: "Raw request body JSON"
3944
+ description: "Raw request body JSON (overrides individual fields)"
3945
3945
  }
3946
3946
  ],
3947
3947
  hasRequestBody: true
@@ -3974,13 +3974,13 @@ var operations = [
3974
3974
  format: "date-time"
3975
3975
  },
3976
3976
  {
3977
- name: "body",
3978
- cliName: "body",
3979
- optionKey: "body",
3977
+ name: "raw-body",
3978
+ cliName: "raw-body",
3979
+ optionKey: "rawBody",
3980
3980
  source: "body",
3981
3981
  type: "object",
3982
3982
  required: false,
3983
- description: "Raw request body JSON"
3983
+ description: "Raw request body JSON (overrides individual fields)"
3984
3984
  }
3985
3985
  ],
3986
3986
  hasRequestBody: true
@@ -4012,13 +4012,13 @@ var operations = [
4012
4012
  description: ""
4013
4013
  },
4014
4014
  {
4015
- name: "body",
4016
- cliName: "body",
4017
- optionKey: "body",
4015
+ name: "raw-body",
4016
+ cliName: "raw-body",
4017
+ optionKey: "rawBody",
4018
4018
  source: "body",
4019
4019
  type: "object",
4020
4020
  required: false,
4021
- description: "Raw request body JSON"
4021
+ description: "Raw request body JSON (overrides individual fields)"
4022
4022
  }
4023
4023
  ],
4024
4024
  hasRequestBody: true
@@ -4060,13 +4060,13 @@ var operations = [
4060
4060
  description: ""
4061
4061
  },
4062
4062
  {
4063
- name: "body",
4064
- cliName: "body",
4065
- optionKey: "body",
4063
+ name: "raw-body",
4064
+ cliName: "raw-body",
4065
+ optionKey: "rawBody",
4066
4066
  source: "body",
4067
4067
  type: "object",
4068
4068
  required: false,
4069
- description: "Raw request body JSON"
4069
+ description: "Raw request body JSON (overrides individual fields)"
4070
4070
  }
4071
4071
  ],
4072
4072
  hasRequestBody: true
@@ -4183,13 +4183,13 @@ var operations = [
4183
4183
  description: ""
4184
4184
  },
4185
4185
  {
4186
- name: "body",
4187
- cliName: "body",
4188
- optionKey: "body",
4186
+ name: "raw-body",
4187
+ cliName: "raw-body",
4188
+ optionKey: "rawBody",
4189
4189
  source: "body",
4190
4190
  type: "object",
4191
4191
  required: false,
4192
- description: "Raw request body JSON"
4192
+ description: "Raw request body JSON (overrides individual fields)"
4193
4193
  }
4194
4194
  ],
4195
4195
  hasRequestBody: true
@@ -4372,13 +4372,13 @@ var operations = [
4372
4372
  description: ""
4373
4373
  },
4374
4374
  {
4375
- name: "body",
4376
- cliName: "body",
4377
- optionKey: "body",
4375
+ name: "raw-body",
4376
+ cliName: "raw-body",
4377
+ optionKey: "rawBody",
4378
4378
  source: "body",
4379
4379
  type: "object",
4380
4380
  required: false,
4381
- description: "Raw request body JSON"
4381
+ description: "Raw request body JSON (overrides individual fields)"
4382
4382
  }
4383
4383
  ],
4384
4384
  hasRequestBody: true
@@ -4563,13 +4563,13 @@ var operations = [
4563
4563
  description: ""
4564
4564
  },
4565
4565
  {
4566
- name: "body",
4567
- cliName: "body",
4568
- optionKey: "body",
4566
+ name: "raw-body",
4567
+ cliName: "raw-body",
4568
+ optionKey: "rawBody",
4569
4569
  source: "body",
4570
4570
  type: "object",
4571
4571
  required: false,
4572
- description: "Raw request body JSON"
4572
+ description: "Raw request body JSON (overrides individual fields)"
4573
4573
  }
4574
4574
  ],
4575
4575
  hasRequestBody: true
@@ -4732,13 +4732,13 @@ var operations = [
4732
4732
  description: ""
4733
4733
  },
4734
4734
  {
4735
- name: "body",
4736
- cliName: "body-body",
4737
- optionKey: "bodyBody",
4735
+ name: "raw-body",
4736
+ cliName: "raw-body",
4737
+ optionKey: "rawBody",
4738
4738
  source: "body",
4739
4739
  type: "object",
4740
4740
  required: false,
4741
- description: "Raw request body JSON"
4741
+ description: "Raw request body JSON (overrides individual fields)"
4742
4742
  }
4743
4743
  ],
4744
4744
  hasRequestBody: true
@@ -4842,13 +4842,13 @@ var operations = [
4842
4842
  description: ""
4843
4843
  },
4844
4844
  {
4845
- name: "body",
4846
- cliName: "body-body",
4847
- optionKey: "bodyBody",
4845
+ name: "raw-body",
4846
+ cliName: "raw-body",
4847
+ optionKey: "rawBody",
4848
4848
  source: "body",
4849
4849
  type: "object",
4850
4850
  required: false,
4851
- description: "Raw request body JSON"
4851
+ description: "Raw request body JSON (overrides individual fields)"
4852
4852
  }
4853
4853
  ],
4854
4854
  hasRequestBody: true
@@ -4916,13 +4916,13 @@ var operations = [
4916
4916
  description: ""
4917
4917
  },
4918
4918
  {
4919
- name: "body",
4920
- cliName: "body-body",
4921
- optionKey: "bodyBody",
4919
+ name: "raw-body",
4920
+ cliName: "raw-body",
4921
+ optionKey: "rawBody",
4922
4922
  source: "body",
4923
4923
  type: "object",
4924
4924
  required: false,
4925
- description: "Raw request body JSON"
4925
+ description: "Raw request body JSON (overrides individual fields)"
4926
4926
  }
4927
4927
  ],
4928
4928
  hasRequestBody: true
@@ -5019,13 +5019,13 @@ var operations = [
5019
5019
  description: ""
5020
5020
  },
5021
5021
  {
5022
- name: "body",
5023
- cliName: "body-body",
5024
- optionKey: "bodyBody",
5022
+ name: "raw-body",
5023
+ cliName: "raw-body",
5024
+ optionKey: "rawBody",
5025
5025
  source: "body",
5026
5026
  type: "object",
5027
5027
  required: false,
5028
- description: "Raw request body JSON"
5028
+ description: "Raw request body JSON (overrides individual fields)"
5029
5029
  }
5030
5030
  ],
5031
5031
  hasRequestBody: true
@@ -5075,13 +5075,13 @@ var operations = [
5075
5075
  description: ""
5076
5076
  },
5077
5077
  {
5078
- name: "body",
5079
- cliName: "body-body",
5080
- optionKey: "bodyBody",
5078
+ name: "raw-body",
5079
+ cliName: "raw-body",
5080
+ optionKey: "rawBody",
5081
5081
  source: "body",
5082
5082
  type: "object",
5083
5083
  required: false,
5084
- description: "Raw request body JSON"
5084
+ description: "Raw request body JSON (overrides individual fields)"
5085
5085
  }
5086
5086
  ],
5087
5087
  hasRequestBody: true
@@ -5254,13 +5254,13 @@ var operations = [
5254
5254
  description: ""
5255
5255
  },
5256
5256
  {
5257
- name: "body",
5258
- cliName: "body-body",
5259
- optionKey: "bodyBody",
5257
+ name: "raw-body",
5258
+ cliName: "raw-body",
5259
+ optionKey: "rawBody",
5260
5260
  source: "body",
5261
5261
  type: "object",
5262
5262
  required: false,
5263
- description: "Raw request body JSON"
5263
+ description: "Raw request body JSON (overrides individual fields)"
5264
5264
  }
5265
5265
  ],
5266
5266
  hasRequestBody: true
@@ -5373,13 +5373,13 @@ var operations = [
5373
5373
  description: ""
5374
5374
  },
5375
5375
  {
5376
- name: "body",
5377
- cliName: "body-body",
5378
- optionKey: "bodyBody",
5376
+ name: "raw-body",
5377
+ cliName: "raw-body",
5378
+ optionKey: "rawBody",
5379
5379
  source: "body",
5380
5380
  type: "object",
5381
5381
  required: false,
5382
- description: "Raw request body JSON"
5382
+ description: "Raw request body JSON (overrides individual fields)"
5383
5383
  }
5384
5384
  ],
5385
5385
  hasRequestBody: true
@@ -5456,13 +5456,13 @@ var operations = [
5456
5456
  description: ""
5457
5457
  },
5458
5458
  {
5459
- name: "body",
5460
- cliName: "body-body",
5461
- optionKey: "bodyBody",
5459
+ name: "raw-body",
5460
+ cliName: "raw-body",
5461
+ optionKey: "rawBody",
5462
5462
  source: "body",
5463
5463
  type: "object",
5464
5464
  required: false,
5465
- description: "Raw request body JSON"
5465
+ description: "Raw request body JSON (overrides individual fields)"
5466
5466
  }
5467
5467
  ],
5468
5468
  hasRequestBody: true
@@ -5568,13 +5568,13 @@ var operations = [
5568
5568
  description: ""
5569
5569
  },
5570
5570
  {
5571
- name: "body",
5572
- cliName: "body-body",
5573
- optionKey: "bodyBody",
5571
+ name: "raw-body",
5572
+ cliName: "raw-body",
5573
+ optionKey: "rawBody",
5574
5574
  source: "body",
5575
5575
  type: "object",
5576
5576
  required: false,
5577
- description: "Raw request body JSON"
5577
+ description: "Raw request body JSON (overrides individual fields)"
5578
5578
  }
5579
5579
  ],
5580
5580
  hasRequestBody: true
@@ -5633,13 +5633,13 @@ var operations = [
5633
5633
  description: ""
5634
5634
  },
5635
5635
  {
5636
- name: "body",
5637
- cliName: "body-body",
5638
- optionKey: "bodyBody",
5636
+ name: "raw-body",
5637
+ cliName: "raw-body",
5638
+ optionKey: "rawBody",
5639
5639
  source: "body",
5640
5640
  type: "object",
5641
5641
  required: false,
5642
- description: "Raw request body JSON"
5642
+ description: "Raw request body JSON (overrides individual fields)"
5643
5643
  }
5644
5644
  ],
5645
5645
  hasRequestBody: true
@@ -5988,13 +5988,13 @@ var operations = [
5988
5988
  description: ""
5989
5989
  },
5990
5990
  {
5991
- name: "body",
5992
- cliName: "body",
5993
- optionKey: "body",
5991
+ name: "raw-body",
5992
+ cliName: "raw-body",
5993
+ optionKey: "rawBody",
5994
5994
  source: "body",
5995
5995
  type: "object",
5996
5996
  required: false,
5997
- description: "Raw request body JSON"
5997
+ description: "Raw request body JSON (overrides individual fields)"
5998
5998
  }
5999
5999
  ],
6000
6000
  hasRequestBody: true
@@ -6147,13 +6147,13 @@ var operations = [
6147
6147
  description: ""
6148
6148
  },
6149
6149
  {
6150
- name: "body",
6151
- cliName: "body",
6152
- optionKey: "body",
6150
+ name: "raw-body",
6151
+ cliName: "raw-body",
6152
+ optionKey: "rawBody",
6153
6153
  source: "body",
6154
6154
  type: "object",
6155
6155
  required: false,
6156
- description: "Raw request body JSON"
6156
+ description: "Raw request body JSON (overrides individual fields)"
6157
6157
  }
6158
6158
  ],
6159
6159
  hasRequestBody: true
@@ -6304,13 +6304,13 @@ var operations = [
6304
6304
  description: ""
6305
6305
  },
6306
6306
  {
6307
- name: "body",
6308
- cliName: "body",
6309
- optionKey: "body",
6307
+ name: "raw-body",
6308
+ cliName: "raw-body",
6309
+ optionKey: "rawBody",
6310
6310
  source: "body",
6311
6311
  type: "object",
6312
6312
  required: false,
6313
- description: "Raw request body JSON"
6313
+ description: "Raw request body JSON (overrides individual fields)"
6314
6314
  }
6315
6315
  ],
6316
6316
  hasRequestBody: true
@@ -6445,13 +6445,13 @@ var operations = [
6445
6445
  description: ""
6446
6446
  },
6447
6447
  {
6448
- name: "body",
6449
- cliName: "body",
6450
- optionKey: "body",
6448
+ name: "raw-body",
6449
+ cliName: "raw-body",
6450
+ optionKey: "rawBody",
6451
6451
  source: "body",
6452
6452
  type: "object",
6453
6453
  required: false,
6454
- description: "Raw request body JSON"
6454
+ description: "Raw request body JSON (overrides individual fields)"
6455
6455
  }
6456
6456
  ],
6457
6457
  hasRequestBody: true
@@ -6622,13 +6622,13 @@ var operations = [
6622
6622
  description: ""
6623
6623
  },
6624
6624
  {
6625
- name: "body",
6626
- cliName: "body",
6627
- optionKey: "body",
6625
+ name: "raw-body",
6626
+ cliName: "raw-body",
6627
+ optionKey: "rawBody",
6628
6628
  source: "body",
6629
6629
  type: "object",
6630
6630
  required: false,
6631
- description: "Raw request body JSON"
6631
+ description: "Raw request body JSON (overrides individual fields)"
6632
6632
  }
6633
6633
  ],
6634
6634
  hasRequestBody: true
@@ -6797,13 +6797,13 @@ var operations = [
6797
6797
  description: ""
6798
6798
  },
6799
6799
  {
6800
- name: "body",
6801
- cliName: "body",
6802
- optionKey: "body",
6800
+ name: "raw-body",
6801
+ cliName: "raw-body",
6802
+ optionKey: "rawBody",
6803
6803
  source: "body",
6804
6804
  type: "object",
6805
6805
  required: false,
6806
- description: "Raw request body JSON"
6806
+ description: "Raw request body JSON (overrides individual fields)"
6807
6807
  }
6808
6808
  ],
6809
6809
  hasRequestBody: true
@@ -7748,13 +7748,13 @@ var operations = [
7748
7748
  description: "Opaque event payload supplied by the external agent"
7749
7749
  },
7750
7750
  {
7751
- name: "body",
7752
- cliName: "body",
7753
- optionKey: "body",
7751
+ name: "raw-body",
7752
+ cliName: "raw-body",
7753
+ optionKey: "rawBody",
7754
7754
  source: "body",
7755
7755
  type: "object",
7756
7756
  required: false,
7757
- description: "Raw request body JSON"
7757
+ description: "Raw request body JSON (overrides individual fields)"
7758
7758
  }
7759
7759
  ],
7760
7760
  hasRequestBody: true
@@ -7795,13 +7795,13 @@ var operations = [
7795
7795
  description: "Opaque action resolution payload supplied by the external agent"
7796
7796
  },
7797
7797
  {
7798
- name: "body",
7799
- cliName: "body",
7800
- optionKey: "body",
7798
+ name: "raw-body",
7799
+ cliName: "raw-body",
7800
+ optionKey: "rawBody",
7801
7801
  source: "body",
7802
7802
  type: "object",
7803
7803
  required: false,
7804
- description: "Raw request body JSON"
7804
+ description: "Raw request body JSON (overrides individual fields)"
7805
7805
  }
7806
7806
  ],
7807
7807
  hasRequestBody: true
@@ -7862,13 +7862,13 @@ var operations = [
7862
7862
  description: ""
7863
7863
  },
7864
7864
  {
7865
- name: "body",
7866
- cliName: "body",
7867
- optionKey: "body",
7865
+ name: "raw-body",
7866
+ cliName: "raw-body",
7867
+ optionKey: "rawBody",
7868
7868
  source: "body",
7869
7869
  type: "object",
7870
7870
  required: false,
7871
- description: "Raw request body JSON"
7871
+ description: "Raw request body JSON (overrides individual fields)"
7872
7872
  }
7873
7873
  ],
7874
7874
  hasRequestBody: true
@@ -8108,7 +8108,7 @@ function buildOptionDescription(option) {
8108
8108
  return parts.join(" ");
8109
8109
  }
8110
8110
  function validateRequiredOptions(operation, values) {
8111
- const hasBody = typeof values.body === "string" && values.body.length > 0;
8111
+ const hasBody = typeof values.rawBody === "string" && values.rawBody.length > 0;
8112
8112
  const missing = operation.options.filter((option) => {
8113
8113
  if (!option.required) {
8114
8114
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-edge",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",