api.fluff4.me 1.0.585 → 1.0.586

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 +11 -6
  2. package/openapi.json +44 -23
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -320,6 +320,11 @@ export interface ChapterQueueBody {
320
320
  notes_after?: string | null
321
321
  }
322
322
 
323
+ export interface QueuedChapterFinaliseFull {
324
+ chapters: QueuedChapterFinalise[]
325
+ position?: ChapterRelativePosition | null
326
+ }
327
+
323
328
  export interface QueuedChapterFinalise {
324
329
  queue_index: string
325
330
  global_tags?: string[] | null
@@ -327,6 +332,11 @@ export interface QueuedChapterFinalise {
327
332
  tier_ids?: string[] | null
328
333
  }
329
334
 
335
+ export interface ChapterRelativePosition {
336
+ relative_to: string
337
+ position: "before" | "after"
338
+ }
339
+
330
340
  export interface ChapterHasQueue {
331
341
  has_queue: boolean
332
342
  }
@@ -359,11 +369,6 @@ export interface ChapterLite {
359
369
  is_numbered: boolean
360
370
  }
361
371
 
362
- export interface ChapterRelativePosition {
363
- relative_to: string
364
- position: "before" | "after"
365
- }
366
-
367
372
  export type Chapters = ChapterLite[]
368
373
 
369
374
  export interface CampaignTierSetBody {
@@ -872,7 +877,7 @@ export interface Paths {
872
877
  },
873
878
  "/work/{author}/{vanity}/chapter/create/bulk/finish": {
874
879
  method: "post"
875
- body: QueuedChapterFinalise[]
880
+ body: QueuedChapterFinaliseFull
876
881
  search?: undefined
877
882
  response: void | ErrorResponse
878
883
  },
package/openapi.json CHANGED
@@ -1864,6 +1864,30 @@
1864
1864
  "body"
1865
1865
  ]
1866
1866
  },
1867
+ "QueuedChapterFinaliseFull": {
1868
+ "type": "object",
1869
+ "properties": {
1870
+ "chapters": {
1871
+ "type": "array",
1872
+ "items": {
1873
+ "$ref": "#/components/schema/QueuedChapterFinalise"
1874
+ }
1875
+ },
1876
+ "position": {
1877
+ "anyOf": [
1878
+ {
1879
+ "$ref": "#/components/schema/ChapterRelativePosition"
1880
+ },
1881
+ {
1882
+ "type": "null"
1883
+ }
1884
+ ]
1885
+ }
1886
+ },
1887
+ "required": [
1888
+ "chapters"
1889
+ ]
1890
+ },
1867
1891
  "QueuedChapterFinalise": {
1868
1892
  "type": "object",
1869
1893
  "properties": {
@@ -1914,6 +1938,25 @@
1914
1938
  "queue_index"
1915
1939
  ]
1916
1940
  },
1941
+ "ChapterRelativePosition": {
1942
+ "type": "object",
1943
+ "properties": {
1944
+ "relative_to": {
1945
+ "type": "string"
1946
+ },
1947
+ "position": {
1948
+ "type": "string",
1949
+ "enum": [
1950
+ "before",
1951
+ "after"
1952
+ ]
1953
+ }
1954
+ },
1955
+ "required": [
1956
+ "relative_to",
1957
+ "position"
1958
+ ]
1959
+ },
1917
1960
  "ChapterHasQueue": {
1918
1961
  "type": "object",
1919
1962
  "properties": {
@@ -2135,25 +2178,6 @@
2135
2178
  "is_numbered"
2136
2179
  ]
2137
2180
  },
2138
- "ChapterRelativePosition": {
2139
- "type": "object",
2140
- "properties": {
2141
- "relative_to": {
2142
- "type": "string"
2143
- },
2144
- "position": {
2145
- "type": "string",
2146
- "enum": [
2147
- "before",
2148
- "after"
2149
- ]
2150
- }
2151
- },
2152
- "required": [
2153
- "relative_to",
2154
- "position"
2155
- ]
2156
- },
2157
2181
  "Chapters": {
2158
2182
  "type": "array",
2159
2183
  "items": {
@@ -4735,10 +4759,7 @@
4735
4759
  "content": {
4736
4760
  "application/json": {
4737
4761
  "schema": {
4738
- "type": "array",
4739
- "items": {
4740
- "$ref": "#/components/schema/QueuedChapterFinalise"
4741
- }
4762
+ "$ref": "#/components/schemas/QueuedChapterFinaliseFull"
4742
4763
  }
4743
4764
  }
4744
4765
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.585",
3
+ "version": "1.0.586",
4
4
  "types": "index.d.ts"
5
5
  }