@bikefinder/sdk 0.2.0 → 0.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.
package/openapi/api.json CHANGED
@@ -4040,7 +4040,7 @@
4040
4040
  "/v1/admin/subscriptions": {
4041
4041
  "get": {
4042
4042
  "tags": [
4043
- "Billing and insurance"
4043
+ "Subscriptions"
4044
4044
  ],
4045
4045
  "operationId": "ListStaffSubscriptions",
4046
4046
  "parameters": [
@@ -4125,7 +4125,7 @@
4125
4125
  "/v1/admin/subscriptions/{id}": {
4126
4126
  "get": {
4127
4127
  "tags": [
4128
- "Billing and insurance"
4128
+ "Subscriptions"
4129
4129
  ],
4130
4130
  "operationId": "GetStaffSubscription",
4131
4131
  "parameters": [
@@ -4166,201 +4166,6 @@
4166
4166
  }
4167
4167
  ]
4168
4168
  }
4169
- },
4170
- "/v1/admin/subscriptions/{id}/insurance/contracts": {
4171
- "get": {
4172
- "tags": [
4173
- "Billing and insurance"
4174
- ],
4175
- "operationId": "ListInsuranceContracts",
4176
- "parameters": [
4177
- {
4178
- "name": "id",
4179
- "in": "path",
4180
- "required": true,
4181
- "schema": {
4182
- "type": "string"
4183
- }
4184
- },
4185
- {
4186
- "name": "provider",
4187
- "in": "query",
4188
- "schema": {
4189
- "type": "string",
4190
- "default": "cycler"
4191
- }
4192
- },
4193
- {
4194
- "name": "limit",
4195
- "in": "query",
4196
- "schema": {
4197
- "maximum": 100,
4198
- "minimum": 1,
4199
- "type": "integer",
4200
- "format": "int32",
4201
- "default": 50
4202
- }
4203
- },
4204
- {
4205
- "name": "cursor",
4206
- "in": "query",
4207
- "schema": {
4208
- "type": "string"
4209
- }
4210
- }
4211
- ],
4212
- "responses": {
4213
- "200": {
4214
- "description": "OK",
4215
- "content": {
4216
- "application/json": {
4217
- "schema": {
4218
- "$ref": "#/components/schemas/InsuranceContractPage"
4219
- }
4220
- }
4221
- }
4222
- },
4223
- "default": {
4224
- "description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
4225
- "content": {
4226
- "application/problem+json": {
4227
- "schema": {
4228
- "$ref": "#/components/schemas/ApiProblem"
4229
- }
4230
- }
4231
- }
4232
- }
4233
- },
4234
- "security": [
4235
- {
4236
- "Bearer": [ ]
4237
- }
4238
- ]
4239
- }
4240
- },
4241
- "/v1/admin/subscriptions/{id}/insurance/contracts/{contractId}": {
4242
- "get": {
4243
- "tags": [
4244
- "Billing and insurance"
4245
- ],
4246
- "operationId": "GetInsuranceContract",
4247
- "parameters": [
4248
- {
4249
- "name": "id",
4250
- "in": "path",
4251
- "required": true,
4252
- "schema": {
4253
- "type": "string"
4254
- }
4255
- },
4256
- {
4257
- "name": "contractId",
4258
- "in": "path",
4259
- "required": true,
4260
- "schema": {
4261
- "type": "string"
4262
- }
4263
- },
4264
- {
4265
- "name": "provider",
4266
- "in": "query",
4267
- "schema": {
4268
- "type": "string",
4269
- "default": "cycler"
4270
- }
4271
- }
4272
- ],
4273
- "responses": {
4274
- "200": {
4275
- "description": "OK",
4276
- "content": {
4277
- "application/json": {
4278
- "schema": {
4279
- "$ref": "#/components/schemas/InsuranceContractDocument"
4280
- }
4281
- }
4282
- }
4283
- },
4284
- "default": {
4285
- "description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
4286
- "content": {
4287
- "application/problem+json": {
4288
- "schema": {
4289
- "$ref": "#/components/schemas/ApiProblem"
4290
- }
4291
- }
4292
- }
4293
- }
4294
- },
4295
- "security": [
4296
- {
4297
- "Bearer": [ ]
4298
- }
4299
- ]
4300
- }
4301
- },
4302
- "/v1/admin/subscriptions/{id}/insurance/attempts": {
4303
- "get": {
4304
- "tags": [
4305
- "Billing and insurance"
4306
- ],
4307
- "operationId": "ListInsuranceAttempts",
4308
- "parameters": [
4309
- {
4310
- "name": "id",
4311
- "in": "path",
4312
- "required": true,
4313
- "schema": {
4314
- "type": "string"
4315
- }
4316
- },
4317
- {
4318
- "name": "limit",
4319
- "in": "query",
4320
- "schema": {
4321
- "maximum": 100,
4322
- "minimum": 1,
4323
- "type": "integer",
4324
- "format": "int32",
4325
- "default": 50
4326
- }
4327
- },
4328
- {
4329
- "name": "cursor",
4330
- "in": "query",
4331
- "schema": {
4332
- "type": "string"
4333
- }
4334
- }
4335
- ],
4336
- "responses": {
4337
- "200": {
4338
- "description": "OK",
4339
- "content": {
4340
- "application/json": {
4341
- "schema": {
4342
- "$ref": "#/components/schemas/InsuranceAttemptPage"
4343
- }
4344
- }
4345
- }
4346
- },
4347
- "default": {
4348
- "description": "Problem Details. A write with operation_unconfirmed may have committed; reuse its original request ID when retrying.",
4349
- "content": {
4350
- "application/problem+json": {
4351
- "schema": {
4352
- "$ref": "#/components/schemas/ApiProblem"
4353
- }
4354
- }
4355
- }
4356
- }
4357
- },
4358
- "security": [
4359
- {
4360
- "Bearer": [ ]
4361
- }
4362
- ]
4363
- }
4364
4169
  }
4365
4170
  },
4366
4171
  "components": {
@@ -8027,7 +7832,7 @@
8027
7832
  "type": "object",
8028
7833
  "properties": {
8029
7834
  "series": {
8030
- "$ref": "#/components/schemas/AwsObservationSeries"
7835
+ "$ref": "#/components/schemas/ObservationSeries"
8031
7836
  },
8032
7837
  "observation": {
8033
7838
  "oneOf": [
@@ -8054,31 +7859,12 @@
8054
7859
  "uniqueItems": true,
8055
7860
  "type": "array",
8056
7861
  "items": {
8057
- "$ref": "#/components/schemas/AwsObservationSeries"
7862
+ "$ref": "#/components/schemas/ObservationSeries"
8058
7863
  }
8059
7864
  }
8060
7865
  },
8061
7866
  "additionalProperties": false
8062
7867
  },
8063
- "AwsObservationSeries": {
8064
- "required": [
8065
- "definitionId"
8066
- ],
8067
- "type": "object",
8068
- "properties": {
8069
- "definitionId": {
8070
- "type": "integer",
8071
- "format": "uint16"
8072
- },
8073
- "subject": {
8074
- "type": [
8075
- "null",
8076
- "string"
8077
- ]
8078
- }
8079
- },
8080
- "additionalProperties": false
8081
- },
8082
7868
  "AwsSettingsApplication": {
8083
7869
  "required": [
8084
7870
  "settings",
@@ -30550,439 +30336,6 @@
30550
30336
  },
30551
30337
  "additionalProperties": false
30552
30338
  },
30553
- "InsuranceAddress": {
30554
- "required": [
30555
- "line1",
30556
- "line2",
30557
- "town",
30558
- "postcode"
30559
- ],
30560
- "type": "object",
30561
- "properties": {
30562
- "line1": {
30563
- "type": "string"
30564
- },
30565
- "line2": {
30566
- "type": "string"
30567
- },
30568
- "town": {
30569
- "type": "string"
30570
- },
30571
- "postcode": {
30572
- "type": "string"
30573
- }
30574
- },
30575
- "additionalProperties": false
30576
- },
30577
- "InsuranceAttemptData": {
30578
- "type": "object",
30579
- "properties": {
30580
- "attemptId": {
30581
- "type": [
30582
- "null",
30583
- "string"
30584
- ]
30585
- },
30586
- "referenceNo": {
30587
- "type": [
30588
- "null",
30589
- "string"
30590
- ]
30591
- },
30592
- "contractId": {
30593
- "type": [
30594
- "null",
30595
- "string"
30596
- ]
30597
- },
30598
- "country": {
30599
- "type": [
30600
- "null",
30601
- "string"
30602
- ]
30603
- },
30604
- "iterator": {
30605
- "type": [
30606
- "null",
30607
- "integer"
30608
- ],
30609
- "format": "int64"
30610
- },
30611
- "state": {
30612
- "type": [
30613
- "null",
30614
- "string"
30615
- ]
30616
- },
30617
- "resolved": {
30618
- "type": [
30619
- "null",
30620
- "boolean"
30621
- ]
30622
- },
30623
- "timestamp": {
30624
- "type": [
30625
- "null",
30626
- "string"
30627
- ],
30628
- "format": "date-time"
30629
- },
30630
- "request": {
30631
- "oneOf": [
30632
- {
30633
- "type": "null"
30634
- },
30635
- {
30636
- "$ref": "#/components/schemas/InsurancePolicyRequest"
30637
- }
30638
- ]
30639
- },
30640
- "tier": {
30641
- "oneOf": [
30642
- {
30643
- "type": "null"
30644
- },
30645
- {
30646
- "$ref": "#/components/schemas/InsuranceTier"
30647
- }
30648
- ]
30649
- },
30650
- "maxBikeValue": {
30651
- "type": [
30652
- "null",
30653
- "number"
30654
- ],
30655
- "format": "double"
30656
- },
30657
- "result": {
30658
- "oneOf": [
30659
- {
30660
- "type": "null"
30661
- },
30662
- {
30663
- "$ref": "#/components/schemas/InsuranceResult"
30664
- }
30665
- ]
30666
- }
30667
- },
30668
- "additionalProperties": false
30669
- },
30670
- "InsuranceAttemptDocument": {
30671
- "required": [
30672
- "id",
30673
- "revision",
30674
- "createdAt",
30675
- "updatedAt",
30676
- "data"
30677
- ],
30678
- "type": "object",
30679
- "properties": {
30680
- "id": {
30681
- "type": "string"
30682
- },
30683
- "revision": {
30684
- "type": "string"
30685
- },
30686
- "createdAt": {
30687
- "type": "string",
30688
- "format": "date-time"
30689
- },
30690
- "updatedAt": {
30691
- "type": "string",
30692
- "format": "date-time"
30693
- },
30694
- "data": {
30695
- "$ref": "#/components/schemas/InsuranceAttemptData"
30696
- }
30697
- },
30698
- "additionalProperties": false
30699
- },
30700
- "InsuranceAttemptPage": {
30701
- "required": [
30702
- "items",
30703
- "nextCursor"
30704
- ],
30705
- "type": "object",
30706
- "properties": {
30707
- "items": {
30708
- "type": "array",
30709
- "items": {
30710
- "$ref": "#/components/schemas/InsuranceAttemptDocument"
30711
- }
30712
- },
30713
- "nextCursor": {
30714
- "type": [
30715
- "null",
30716
- "string"
30717
- ]
30718
- }
30719
- },
30720
- "additionalProperties": false
30721
- },
30722
- "InsuranceContractData": {
30723
- "type": "object",
30724
- "properties": {
30725
- "id": {
30726
- "type": [
30727
- "null",
30728
- "string"
30729
- ]
30730
- },
30731
- "country": {
30732
- "type": [
30733
- "null",
30734
- "string"
30735
- ]
30736
- },
30737
- "iterator": {
30738
- "type": [
30739
- "null",
30740
- "integer"
30741
- ],
30742
- "format": "int64"
30743
- },
30744
- "referenceNo": {
30745
- "type": [
30746
- "null",
30747
- "string"
30748
- ]
30749
- },
30750
- "timestamp": {
30751
- "type": [
30752
- "null",
30753
- "string"
30754
- ],
30755
- "format": "date-time"
30756
- },
30757
- "cancelled": {
30758
- "type": [
30759
- "null",
30760
- "boolean"
30761
- ]
30762
- },
30763
- "policyCode": {
30764
- "oneOf": [
30765
- {
30766
- "type": "null"
30767
- },
30768
- {
30769
- "$ref": "#/components/schemas/PolicyCode"
30770
- }
30771
- ]
30772
- },
30773
- "tier": {
30774
- "oneOf": [
30775
- {
30776
- "type": "null"
30777
- },
30778
- {
30779
- "$ref": "#/components/schemas/InsuranceTier"
30780
- }
30781
- ]
30782
- },
30783
- "delivery": {
30784
- "oneOf": [
30785
- {
30786
- "type": "null"
30787
- },
30788
- {
30789
- "$ref": "#/components/schemas/InsuranceDelivery"
30790
- }
30791
- ]
30792
- }
30793
- },
30794
- "additionalProperties": false
30795
- },
30796
- "InsuranceContractDocument": {
30797
- "required": [
30798
- "id",
30799
- "revision",
30800
- "createdAt",
30801
- "updatedAt",
30802
- "data"
30803
- ],
30804
- "type": "object",
30805
- "properties": {
30806
- "id": {
30807
- "type": "string"
30808
- },
30809
- "revision": {
30810
- "type": "string"
30811
- },
30812
- "createdAt": {
30813
- "type": "string",
30814
- "format": "date-time"
30815
- },
30816
- "updatedAt": {
30817
- "type": "string",
30818
- "format": "date-time"
30819
- },
30820
- "data": {
30821
- "$ref": "#/components/schemas/InsuranceContractData"
30822
- }
30823
- },
30824
- "additionalProperties": false
30825
- },
30826
- "InsuranceContractPage": {
30827
- "required": [
30828
- "items",
30829
- "nextCursor"
30830
- ],
30831
- "type": "object",
30832
- "properties": {
30833
- "items": {
30834
- "type": "array",
30835
- "items": {
30836
- "$ref": "#/components/schemas/InsuranceContractDocument"
30837
- }
30838
- },
30839
- "nextCursor": {
30840
- "type": [
30841
- "null",
30842
- "string"
30843
- ]
30844
- }
30845
- },
30846
- "additionalProperties": false
30847
- },
30848
- "InsuranceCustomer": {
30849
- "required": [
30850
- "title",
30851
- "firstname",
30852
- "lastname",
30853
- "email",
30854
- "dob",
30855
- "phone",
30856
- "address"
30857
- ],
30858
- "type": "object",
30859
- "properties": {
30860
- "title": {
30861
- "type": "string"
30862
- },
30863
- "firstname": {
30864
- "type": "string"
30865
- },
30866
- "lastname": {
30867
- "type": "string"
30868
- },
30869
- "email": {
30870
- "type": "string"
30871
- },
30872
- "dob": {
30873
- "type": "string"
30874
- },
30875
- "phone": {
30876
- "type": "string"
30877
- },
30878
- "address": {
30879
- "$ref": "#/components/schemas/InsuranceAddress"
30880
- }
30881
- },
30882
- "additionalProperties": false
30883
- },
30884
- "InsuranceCycle": {
30885
- "required": [
30886
- "value"
30887
- ],
30888
- "type": "object",
30889
- "properties": {
30890
- "value": {
30891
- "type": "number",
30892
- "format": "double"
30893
- }
30894
- },
30895
- "additionalProperties": false
30896
- },
30897
- "InsuranceDelivery": {
30898
- "required": [
30899
- "status",
30900
- "schedule",
30901
- "customer"
30902
- ],
30903
- "type": "object",
30904
- "properties": {
30905
- "status": {
30906
- "type": "string"
30907
- },
30908
- "schedule": {
30909
- "type": "string"
30910
- },
30911
- "customer": {
30912
- "$ref": "#/components/schemas/InsuranceCustomer"
30913
- }
30914
- },
30915
- "additionalProperties": false
30916
- },
30917
- "InsurancePolicy": {
30918
- "required": [
30919
- "cycles",
30920
- "startDate",
30921
- "bfSubscriptionId",
30922
- "bfReference"
30923
- ],
30924
- "type": "object",
30925
- "properties": {
30926
- "cycles": {
30927
- "type": "array",
30928
- "items": {
30929
- "$ref": "#/components/schemas/InsuranceCycle"
30930
- }
30931
- },
30932
- "startDate": {
30933
- "type": "string"
30934
- },
30935
- "bfSubscriptionId": {
30936
- "type": "string"
30937
- },
30938
- "bfReference": {
30939
- "type": "string"
30940
- }
30941
- },
30942
- "additionalProperties": false
30943
- },
30944
- "InsurancePolicyRequest": {
30945
- "required": [
30946
- "customer",
30947
- "policy"
30948
- ],
30949
- "type": "object",
30950
- "properties": {
30951
- "customer": {
30952
- "$ref": "#/components/schemas/InsuranceCustomer"
30953
- },
30954
- "policy": {
30955
- "$ref": "#/components/schemas/InsurancePolicy"
30956
- }
30957
- },
30958
- "additionalProperties": false
30959
- },
30960
- "InsuranceResult": {
30961
- "required": [
30962
- "policyCode",
30963
- "schedule"
30964
- ],
30965
- "type": "object",
30966
- "properties": {
30967
- "policyCode": {
30968
- "$ref": "#/components/schemas/PolicyCode"
30969
- },
30970
- "schedule": {
30971
- "type": "string"
30972
- }
30973
- },
30974
- "additionalProperties": false
30975
- },
30976
- "InsuranceTier": {
30977
- "oneOf": [
30978
- {
30979
- "type": "string"
30980
- },
30981
- {
30982
- "type": "integer"
30983
- }
30984
- ]
30985
- },
30986
30339
  "InventoryMemberValue": {
30987
30340
  "required": [
30988
30341
  "slot",
@@ -31032,9 +30385,9 @@
31032
30385
  },
31033
30386
  "LegacyLteDispatchState": {
31034
30387
  "enum": [
31035
- "Queued",
31036
- "Dispatched",
31037
- "Expired"
30388
+ "queued",
30389
+ "dispatched",
30390
+ "expired"
31038
30391
  ]
31039
30392
  },
31040
30393
  "LegacyLteOperation": {
@@ -31079,8 +30432,8 @@
31079
30432
  },
31080
30433
  "LegacyLteOperationKind": {
31081
30434
  "enum": [
31082
- "Queue",
31083
- "Cancel"
30435
+ "queue",
30436
+ "cancel"
31084
30437
  ]
31085
30438
  },
31086
30439
  "LegacyLteUpgrade": {
@@ -42871,6 +42224,25 @@
42871
42224
  },
42872
42225
  "additionalProperties": false
42873
42226
  },
42227
+ "ObservationSeries": {
42228
+ "required": [
42229
+ "definitionId"
42230
+ ],
42231
+ "type": "object",
42232
+ "properties": {
42233
+ "definitionId": {
42234
+ "type": "integer",
42235
+ "format": "uint16"
42236
+ },
42237
+ "subject": {
42238
+ "type": [
42239
+ "null",
42240
+ "string"
42241
+ ]
42242
+ }
42243
+ },
42244
+ "additionalProperties": false
42245
+ },
42874
42246
  "ObservationSystemBootedObservation": {
42875
42247
  "required": [
42876
42248
  "value",
@@ -43730,16 +43102,6 @@
43730
43102
  },
43731
43103
  "additionalProperties": false
43732
43104
  },
43733
- "PolicyCode": {
43734
- "oneOf": [
43735
- {
43736
- "type": "string"
43737
- },
43738
- {
43739
- "type": "integer"
43740
- }
43741
- ]
43742
- },
43743
43105
  "PositionGnssFixValue": {
43744
43106
  "required": [
43745
43107
  "coordinates",
@@ -44332,16 +43694,6 @@
44332
43694
  "boolean"
44333
43695
  ]
44334
43696
  },
44335
- "tier": {
44336
- "oneOf": [
44337
- {
44338
- "type": "null"
44339
- },
44340
- {
44341
- "$ref": "#/components/schemas/InsuranceTier"
44342
- }
44343
- ]
44344
- },
44345
43697
  "type": {
44346
43698
  "type": [
44347
43699
  "null",
@@ -44524,16 +43876,6 @@
44524
43876
  "boolean"
44525
43877
  ]
44526
43878
  },
44527
- "tier": {
44528
- "oneOf": [
44529
- {
44530
- "type": "null"
44531
- },
44532
- {
44533
- "$ref": "#/components/schemas/InsuranceTier"
44534
- }
44535
- ]
44536
- },
44537
43879
  "type": {
44538
43880
  "type": [
44539
43881
  "null",
@@ -45344,16 +44686,6 @@
45344
44686
  "string"
45345
44687
  ]
45346
44688
  },
45347
- "tier": {
45348
- "oneOf": [
45349
- {
45350
- "type": "null"
45351
- },
45352
- {
45353
- "$ref": "#/components/schemas/TextOrNumber"
45354
- }
45355
- ]
45356
- },
45357
44689
  "country": {
45358
44690
  "type": [
45359
44691
  "null",
@@ -47231,9 +46563,6 @@
47231
46563
  },
47232
46564
  {
47233
46565
  "name": "Staff tracker diagnostics"
47234
- },
47235
- {
47236
- "name": "Billing and insurance"
47237
46566
  }
47238
46567
  ]
47239
46568
  }