api.fluff4.me 1.0.617 → 1.0.620

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 (3) hide show
  1. package/index.d.ts +25 -1
  2. package/openapi.json +111 -6
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -44,11 +44,11 @@ export interface Author {
44
44
  vanity: string
45
45
  pronouns?: string | null
46
46
  supporter?: Supporter | null
47
+ supporter_months_supported: number
47
48
  }
48
49
 
49
50
  export interface Supporter {
50
51
  tier: number
51
- months: number
52
52
  username_colours?: number[] | null
53
53
  card_colours?: number[] | null
54
54
  }
@@ -63,6 +63,7 @@ export interface AuthorSelf {
63
63
  vanity: string
64
64
  pronouns?: string | null
65
65
  supporter?: Supporter | null
66
+ supporter_months_supported: number
66
67
  description: TextBody
67
68
  authorisations?: Authorisation[] | null
68
69
  patreon_campaign?: PatreonCampaign | null
@@ -178,6 +179,7 @@ export interface AuthorFull {
178
179
  vanity: string
179
180
  pronouns?: string | null
180
181
  supporter?: Supporter | null
182
+ supporter_months_supported: number
181
183
  description: TextBody
182
184
  }
183
185
 
@@ -707,6 +709,16 @@ export interface LemonSqueezyProductDisplay {
707
709
  buy_now_url: string
708
710
  }
709
711
 
712
+ export interface OrderResponse {
713
+ orders: {
714
+ type: string
715
+ timestamp: string
716
+ status: string
717
+ amount: number
718
+ uuid: string
719
+ }[]
720
+ }
721
+
710
722
  export interface ErrorResponse {
711
723
  code: number
712
724
  detail?: string | null
@@ -1591,4 +1603,16 @@ export interface Paths {
1591
1603
  search?: undefined
1592
1604
  response: Response<SupporterStatus> | ErrorResponse
1593
1605
  },
1606
+ "/supporter/orders": {
1607
+ method: "get"
1608
+ body?: undefined
1609
+ search?: undefined
1610
+ response: Response<OrderResponse> | ErrorResponse
1611
+ },
1612
+ "/supporter/order/{id}": {
1613
+ method: "get"
1614
+ body?: undefined
1615
+ search?: undefined
1616
+ response: void | ErrorResponse
1617
+ },
1594
1618
  }
package/openapi.json CHANGED
@@ -166,6 +166,9 @@
166
166
  "type": "null"
167
167
  }
168
168
  ]
169
+ },
170
+ "supporter_months_supported": {
171
+ "type": "number"
169
172
  }
170
173
  },
171
174
  "required": [
@@ -175,7 +178,8 @@
175
178
  "support_message",
176
179
  "word_count",
177
180
  "work_count",
178
- "vanity"
181
+ "vanity",
182
+ "supporter_months_supported"
179
183
  ]
180
184
  },
181
185
  "Supporter": {
@@ -184,9 +188,6 @@
184
188
  "tier": {
185
189
  "type": "number"
186
190
  },
187
- "months": {
188
- "type": "number"
189
- },
190
191
  "username_colours": {
191
192
  "anyOf": [
192
193
  {
@@ -215,8 +216,7 @@
215
216
  }
216
217
  },
217
218
  "required": [
218
- "tier",
219
- "months"
219
+ "tier"
220
220
  ]
221
221
  },
222
222
  "AuthorSelf": {
@@ -268,6 +268,9 @@
268
268
  }
269
269
  ]
270
270
  },
271
+ "supporter_months_supported": {
272
+ "type": "number"
273
+ },
271
274
  "description": {
272
275
  "$ref": "#/components/schema/TextBody"
273
276
  },
@@ -373,6 +376,7 @@
373
376
  "word_count",
374
377
  "work_count",
375
378
  "vanity",
379
+ "supporter_months_supported",
376
380
  "description"
377
381
  ]
378
382
  },
@@ -931,6 +935,9 @@
931
935
  }
932
936
  ]
933
937
  },
938
+ "supporter_months_supported": {
939
+ "type": "number"
940
+ },
934
941
  "description": {
935
942
  "$ref": "#/components/schema/TextBody"
936
943
  }
@@ -943,6 +950,7 @@
943
950
  "word_count",
944
951
  "work_count",
945
952
  "vanity",
953
+ "supporter_months_supported",
946
954
  "description"
947
955
  ]
948
956
  },
@@ -3901,6 +3909,44 @@
3901
3909
  "buy_now_url"
3902
3910
  ]
3903
3911
  },
3912
+ "OrderResponse": {
3913
+ "type": "object",
3914
+ "properties": {
3915
+ "orders": {
3916
+ "type": "array",
3917
+ "items": {
3918
+ "type": "object",
3919
+ "properties": {
3920
+ "type": {
3921
+ "type": "string"
3922
+ },
3923
+ "timestamp": {
3924
+ "type": "string"
3925
+ },
3926
+ "status": {
3927
+ "type": "string"
3928
+ },
3929
+ "amount": {
3930
+ "type": "number"
3931
+ },
3932
+ "uuid": {
3933
+ "type": "string"
3934
+ }
3935
+ },
3936
+ "required": [
3937
+ "type",
3938
+ "timestamp",
3939
+ "status",
3940
+ "amount",
3941
+ "uuid"
3942
+ ]
3943
+ }
3944
+ }
3945
+ },
3946
+ "required": [
3947
+ "orders"
3948
+ ]
3949
+ },
3904
3950
  "ErrorResponse": {
3905
3951
  "type": "object",
3906
3952
  "properties": {
@@ -9873,6 +9919,65 @@
9873
9919
  }
9874
9920
  }
9875
9921
  }
9922
+ },
9923
+ "/supporter/orders": {
9924
+ "get": {
9925
+ "responses": {
9926
+ "200": {
9927
+ "description": "200 response",
9928
+ "content": {
9929
+ "application/json": {
9930
+ "schema": {
9931
+ "type": "object",
9932
+ "properties": {
9933
+ "data": {
9934
+ "$ref": "#/components/schemas/OrderResponse"
9935
+ }
9936
+ },
9937
+ "required": [
9938
+ "data"
9939
+ ]
9940
+ }
9941
+ }
9942
+ }
9943
+ },
9944
+ "default": {
9945
+ "description": "Error",
9946
+ "content": {
9947
+ "application/json": {
9948
+ "schema": {
9949
+ "$ref": "#/components/schemas/ErrorResponse"
9950
+ }
9951
+ }
9952
+ }
9953
+ }
9954
+ }
9955
+ }
9956
+ },
9957
+ "/supporter/order/{id}": {
9958
+ "parameters": [
9959
+ {
9960
+ "name": "id",
9961
+ "in": "path"
9962
+ }
9963
+ ],
9964
+ "get": {
9965
+ "responses": {
9966
+ "200": {
9967
+ "description": "200 response"
9968
+ },
9969
+ "default": {
9970
+ "description": "Error",
9971
+ "content": {
9972
+ "application/json": {
9973
+ "schema": {
9974
+ "$ref": "#/components/schemas/ErrorResponse"
9975
+ }
9976
+ }
9977
+ }
9978
+ }
9979
+ }
9980
+ }
9876
9981
  }
9877
9982
  }
9878
9983
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.617",
3
+ "version": "1.0.620",
4
4
  "types": "index.d.ts"
5
5
  }