@shoplygg/node 0.11.0 → 0.11.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.
@@ -312,6 +312,7 @@ export type StoreEmailSettingsResult = {
312
312
  discordCustomPaidEnabled: boolean;
313
313
  discordTicketsEnabled: boolean;
314
314
  discordResellersEnabled: boolean;
315
+ discordPaypalEnabled: boolean;
315
316
  discordDisputesEnabled: boolean;
316
317
  discordStockThreshold: number;
317
318
  discordFailure: unknown;
@@ -354,6 +355,7 @@ export type PaymentMethodsListResult = Array<{
354
355
  originHint: string;
355
356
  callbackHint: string;
356
357
  copies: unknown[] | Record<string, unknown>;
358
+ friends: unknown;
357
359
  authorizeUrl: string;
358
360
  connected: boolean;
359
361
  enabled: boolean;
@@ -377,14 +379,15 @@ export type PaymentMethodsListResult = Array<{
377
379
  isSet: boolean;
378
380
  value: string;
379
381
  }[];
380
- toggles: {
382
+ toggles: Array<{
381
383
  name: string;
382
384
  label: string;
383
385
  hint: string;
384
386
  group: string;
385
387
  needs: string;
386
388
  on: boolean;
387
- }[];
389
+ choices: unknown[] | Record<string, unknown>;
390
+ }>;
388
391
  unpaidHours: unknown;
389
392
  updatedAt: unknown;
390
393
  }>;
@@ -427,6 +430,7 @@ export type PaymentMethodsSetBalanceResult = Array<{
427
430
  originHint: string;
428
431
  callbackHint: string;
429
432
  copies: unknown[] | Record<string, unknown>;
433
+ friends: unknown;
430
434
  authorizeUrl: string;
431
435
  connected: boolean;
432
436
  enabled: boolean;
@@ -450,14 +454,15 @@ export type PaymentMethodsSetBalanceResult = Array<{
450
454
  isSet: boolean;
451
455
  value: string;
452
456
  }[];
453
- toggles: {
457
+ toggles: Array<{
454
458
  name: string;
455
459
  label: string;
456
460
  hint: string;
457
461
  group: string;
458
462
  needs: string;
459
463
  on: boolean;
460
- }[];
464
+ choices: unknown[] | Record<string, unknown>;
465
+ }>;
461
466
  unpaidHours: unknown;
462
467
  updatedAt: unknown;
463
468
  }>;
@@ -482,6 +487,7 @@ export type PaymentMethodsSetUnpaidHoursResult = Array<{
482
487
  originHint: string;
483
488
  callbackHint: string;
484
489
  copies: unknown[] | Record<string, unknown>;
490
+ friends: unknown;
485
491
  authorizeUrl: string;
486
492
  connected: boolean;
487
493
  enabled: boolean;
@@ -505,14 +511,15 @@ export type PaymentMethodsSetUnpaidHoursResult = Array<{
505
511
  isSet: boolean;
506
512
  value: string;
507
513
  }[];
508
- toggles: {
514
+ toggles: Array<{
509
515
  name: string;
510
516
  label: string;
511
517
  hint: string;
512
518
  group: string;
513
519
  needs: string;
514
520
  on: boolean;
515
- }[];
521
+ choices: unknown[] | Record<string, unknown>;
522
+ }>;
516
523
  unpaidHours: unknown;
517
524
  updatedAt: string;
518
525
  }>;
@@ -537,6 +544,7 @@ export type PaymentMethodsSetMethodUnpaidHoursResult = Array<{
537
544
  originHint: string;
538
545
  callbackHint: string;
539
546
  copies: unknown[] | Record<string, unknown>;
547
+ friends: unknown;
540
548
  authorizeUrl: string;
541
549
  connected: boolean;
542
550
  enabled: boolean;
@@ -560,14 +568,15 @@ export type PaymentMethodsSetMethodUnpaidHoursResult = Array<{
560
568
  isSet: boolean;
561
569
  value: string;
562
570
  }[];
563
- toggles: {
571
+ toggles: Array<{
564
572
  name: string;
565
573
  label: string;
566
574
  hint: string;
567
575
  group: string;
568
576
  needs: string;
569
577
  on: boolean;
570
- }[];
578
+ choices: unknown[] | Record<string, unknown>;
579
+ }>;
571
580
  unpaidHours: number;
572
581
  updatedAt: string;
573
582
  }>;
@@ -7770,7 +7779,7 @@ export interface ResellerProductsBadgesParams {
7770
7779
 
7771
7780
  /** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
7772
7781
  export type ResellerProductsBadgesResult = {
7773
- "17a715fc-872e-4907-b0ec-f6c1ca743380": {
7782
+ "237ccb40-c902-4c6b-8888-6f651d84fc59": {
7774
7783
  label: string;
7775
7784
  color: string;
7776
7785
  kind: string;
@@ -8704,8 +8713,8 @@ export interface FraudEventsListParams {
8704
8713
  * Left out, it is 20.
8705
8714
  */
8706
8715
  perPage?: number;
8707
- /** Only events of this reason. `changes` is every change to the rules and settings. */
8708
- reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
8716
+ /** Only events of this reason. `changes` is every change to the rules and settings; `imported` is a line of another platform's log, brought by Platform Migration. */
8717
+ reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "imported" | "changes";
8709
8718
  /** Part of an email address, an IP address or a rule's value. */
8710
8719
  search?: string;
8711
8720
  /** Only events in this period. */
@@ -8742,8 +8751,8 @@ export type FraudEventsListItem = {
8742
8751
 
8743
8752
  /** What export fraud events takes: `fraudEvents.export`. */
8744
8753
  export interface FraudEventsExportParams {
8745
- /** Only events of this reason. `changes` is every change to the rules and settings. */
8746
- reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
8754
+ /** Only events of this reason. `changes` is every change to the rules and settings; `imported` is a line of another platform's log, brought by Platform Migration. */
8755
+ reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "imported" | "changes";
8747
8756
  /** Part of an email address, an IP address or a rule's value. */
8748
8757
  search?: string;
8749
8758
  /** `1` for how many rows the file would have, as `{ rows }`, in place of the file. Not counted against the store's exports, and refused with 429 where none are left. */
package/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { EVENTS, OPERATIONS } from "./generated/operations.js";
16
16
 
17
- export const VERSION = "0.11.0";
17
+ export const VERSION = "0.11.3";
18
18
 
19
19
  const API = "https://api.shoply.gg/v1";
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplygg/node",
3
- "version": "0.11.0",
3
+ "version": "0.11.3",
4
4
  "description": "Shoply's API from your own server: every route as a typed method, safe retries, pages, checking webhooks, and OAuth for apps.",
5
5
  "keywords": ["shoply", "api", "sdk", "ecommerce", "webhooks", "digital-goods"],
6
6
  "homepage": "https://docs.shoply.gg/api-reference/node",