@creator.co/creatorco-prisma-client 1.0.46-alpha-cbcafab → 1.0.47-alpha-15ad3c3

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/index.d.ts CHANGED
@@ -373,6 +373,16 @@ export type ShopifyProductVariation = $Result.DefaultSelection<Prisma.$ShopifyPr
373
373
  *
374
374
  */
375
375
  export type CampaignToShopifyProduct = $Result.DefaultSelection<Prisma.$CampaignToShopifyProductPayload>
376
+ /**
377
+ * Model ShopifyDiscountCode
378
+ *
379
+ */
380
+ export type ShopifyDiscountCode = $Result.DefaultSelection<Prisma.$ShopifyDiscountCodePayload>
381
+ /**
382
+ * Model ShopifySale
383
+ *
384
+ */
385
+ export type ShopifySale = $Result.DefaultSelection<Prisma.$ShopifySalePayload>
376
386
 
377
387
  /**
378
388
  * Enums
@@ -1261,6 +1271,26 @@ export class PrismaClient<
1261
1271
  * ```
1262
1272
  */
1263
1273
  get campaignToShopifyProduct(): Prisma.CampaignToShopifyProductDelegate<ExtArgs>;
1274
+
1275
+ /**
1276
+ * `prisma.shopifyDiscountCode`: Exposes CRUD operations for the **ShopifyDiscountCode** model.
1277
+ * Example usage:
1278
+ * ```ts
1279
+ * // Fetch zero or more ShopifyDiscountCodes
1280
+ * const shopifyDiscountCodes = await prisma.shopifyDiscountCode.findMany()
1281
+ * ```
1282
+ */
1283
+ get shopifyDiscountCode(): Prisma.ShopifyDiscountCodeDelegate<ExtArgs>;
1284
+
1285
+ /**
1286
+ * `prisma.shopifySale`: Exposes CRUD operations for the **ShopifySale** model.
1287
+ * Example usage:
1288
+ * ```ts
1289
+ * // Fetch zero or more ShopifySales
1290
+ * const shopifySales = await prisma.shopifySale.findMany()
1291
+ * ```
1292
+ */
1293
+ get shopifySale(): Prisma.ShopifySaleDelegate<ExtArgs>;
1264
1294
  }
1265
1295
 
1266
1296
  export namespace Prisma {
@@ -1809,7 +1839,9 @@ export namespace Prisma {
1809
1839
  ShopifyStore: 'ShopifyStore',
1810
1840
  ShopifyProduct: 'ShopifyProduct',
1811
1841
  ShopifyProductVariation: 'ShopifyProductVariation',
1812
- CampaignToShopifyProduct: 'CampaignToShopifyProduct'
1842
+ CampaignToShopifyProduct: 'CampaignToShopifyProduct',
1843
+ ShopifyDiscountCode: 'ShopifyDiscountCode',
1844
+ ShopifySale: 'ShopifySale'
1813
1845
  };
1814
1846
 
1815
1847
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -1826,7 +1858,7 @@ export namespace Prisma {
1826
1858
 
1827
1859
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1828
1860
  meta: {
1829
- modelProps: 'user' | 'log' | 'creatorProfile' | 'instagramProfile' | 'tiktokProfile' | 'youtubeProfile' | 'twitchProfile' | 'facebookProfile' | 'twitterProfile' | 'brandUserProfile' | 'brand' | 'searchContacts' | 'reportCredits' | 'brandToImage' | 'brandToCategory' | 'creatorToCategory' | 'chat' | 'message' | 'campaign' | 'campaignPin' | 'campaignToImage' | 'campaignToBrandAffiliateLink' | 'campaignToCategory' | 'campaignToCountry' | 'productList' | 'productListItem' | 'campaignToProductList' | 'optinToProductListItem' | 'variable' | 'variableOption' | 'step' | 'campaignStep' | 'optInStep' | 'category' | 'optIn' | 'trolleyPayment' | 'optInVariable' | 'socialPost' | 'archivedSocialPost' | 'image' | 'brandImage' | 'country' | 'state' | 'paymentTransaction' | 'externalAffiliateClick' | 'brandAffiliateLink' | 'affiliateLink' | 'affiliateClick' | 'affiliateEvent' | 'savedFile' | 'campaignInvite' | 'creatorList' | 'creatorListItem' | 'socialProfile' | 'messageTemplate' | 'emailTemplate' | 'socialListeningList' | 'listToSocialPost' | 'optInView' | 'rakutenActivity' | 'impactRadiusEvent' | 'shareASaleEvent' | 'creatorSearchFilter' | 'sequence' | 'sequenceStep' | 'sequenceOutboundEmail' | 'sequenceInboundEmail' | 'sequenceImapCheckpoint' | 'shopifyStore' | 'shopifyProduct' | 'shopifyProductVariation' | 'campaignToShopifyProduct'
1861
+ modelProps: 'user' | 'log' | 'creatorProfile' | 'instagramProfile' | 'tiktokProfile' | 'youtubeProfile' | 'twitchProfile' | 'facebookProfile' | 'twitterProfile' | 'brandUserProfile' | 'brand' | 'searchContacts' | 'reportCredits' | 'brandToImage' | 'brandToCategory' | 'creatorToCategory' | 'chat' | 'message' | 'campaign' | 'campaignPin' | 'campaignToImage' | 'campaignToBrandAffiliateLink' | 'campaignToCategory' | 'campaignToCountry' | 'productList' | 'productListItem' | 'campaignToProductList' | 'optinToProductListItem' | 'variable' | 'variableOption' | 'step' | 'campaignStep' | 'optInStep' | 'category' | 'optIn' | 'trolleyPayment' | 'optInVariable' | 'socialPost' | 'archivedSocialPost' | 'image' | 'brandImage' | 'country' | 'state' | 'paymentTransaction' | 'externalAffiliateClick' | 'brandAffiliateLink' | 'affiliateLink' | 'affiliateClick' | 'affiliateEvent' | 'savedFile' | 'campaignInvite' | 'creatorList' | 'creatorListItem' | 'socialProfile' | 'messageTemplate' | 'emailTemplate' | 'socialListeningList' | 'listToSocialPost' | 'optInView' | 'rakutenActivity' | 'impactRadiusEvent' | 'shareASaleEvent' | 'creatorSearchFilter' | 'sequence' | 'sequenceStep' | 'sequenceOutboundEmail' | 'sequenceInboundEmail' | 'sequenceImapCheckpoint' | 'shopifyStore' | 'shopifyProduct' | 'shopifyProductVariation' | 'campaignToShopifyProduct' | 'shopifyDiscountCode' | 'shopifySale'
1830
1862
  txIsolationLevel: Prisma.TransactionIsolationLevel
1831
1863
  },
1832
1864
  model: {
@@ -6870,6 +6902,146 @@ export namespace Prisma {
6870
6902
  }
6871
6903
  }
6872
6904
  }
6905
+ ShopifyDiscountCode: {
6906
+ payload: Prisma.$ShopifyDiscountCodePayload<ExtArgs>
6907
+ fields: Prisma.ShopifyDiscountCodeFieldRefs
6908
+ operations: {
6909
+ findUnique: {
6910
+ args: Prisma.ShopifyDiscountCodeFindUniqueArgs<ExtArgs>,
6911
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload> | null
6912
+ }
6913
+ findUniqueOrThrow: {
6914
+ args: Prisma.ShopifyDiscountCodeFindUniqueOrThrowArgs<ExtArgs>,
6915
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>
6916
+ }
6917
+ findFirst: {
6918
+ args: Prisma.ShopifyDiscountCodeFindFirstArgs<ExtArgs>,
6919
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload> | null
6920
+ }
6921
+ findFirstOrThrow: {
6922
+ args: Prisma.ShopifyDiscountCodeFindFirstOrThrowArgs<ExtArgs>,
6923
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>
6924
+ }
6925
+ findMany: {
6926
+ args: Prisma.ShopifyDiscountCodeFindManyArgs<ExtArgs>,
6927
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>[]
6928
+ }
6929
+ create: {
6930
+ args: Prisma.ShopifyDiscountCodeCreateArgs<ExtArgs>,
6931
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>
6932
+ }
6933
+ createMany: {
6934
+ args: Prisma.ShopifyDiscountCodeCreateManyArgs<ExtArgs>,
6935
+ result: Prisma.BatchPayload
6936
+ }
6937
+ createManyAndReturn: {
6938
+ args: Prisma.ShopifyDiscountCodeCreateManyAndReturnArgs<ExtArgs>,
6939
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>[]
6940
+ }
6941
+ delete: {
6942
+ args: Prisma.ShopifyDiscountCodeDeleteArgs<ExtArgs>,
6943
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>
6944
+ }
6945
+ update: {
6946
+ args: Prisma.ShopifyDiscountCodeUpdateArgs<ExtArgs>,
6947
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>
6948
+ }
6949
+ deleteMany: {
6950
+ args: Prisma.ShopifyDiscountCodeDeleteManyArgs<ExtArgs>,
6951
+ result: Prisma.BatchPayload
6952
+ }
6953
+ updateMany: {
6954
+ args: Prisma.ShopifyDiscountCodeUpdateManyArgs<ExtArgs>,
6955
+ result: Prisma.BatchPayload
6956
+ }
6957
+ upsert: {
6958
+ args: Prisma.ShopifyDiscountCodeUpsertArgs<ExtArgs>,
6959
+ result: $Utils.PayloadToResult<Prisma.$ShopifyDiscountCodePayload>
6960
+ }
6961
+ aggregate: {
6962
+ args: Prisma.ShopifyDiscountCodeAggregateArgs<ExtArgs>,
6963
+ result: $Utils.Optional<AggregateShopifyDiscountCode>
6964
+ }
6965
+ groupBy: {
6966
+ args: Prisma.ShopifyDiscountCodeGroupByArgs<ExtArgs>,
6967
+ result: $Utils.Optional<ShopifyDiscountCodeGroupByOutputType>[]
6968
+ }
6969
+ count: {
6970
+ args: Prisma.ShopifyDiscountCodeCountArgs<ExtArgs>,
6971
+ result: $Utils.Optional<ShopifyDiscountCodeCountAggregateOutputType> | number
6972
+ }
6973
+ }
6974
+ }
6975
+ ShopifySale: {
6976
+ payload: Prisma.$ShopifySalePayload<ExtArgs>
6977
+ fields: Prisma.ShopifySaleFieldRefs
6978
+ operations: {
6979
+ findUnique: {
6980
+ args: Prisma.ShopifySaleFindUniqueArgs<ExtArgs>,
6981
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload> | null
6982
+ }
6983
+ findUniqueOrThrow: {
6984
+ args: Prisma.ShopifySaleFindUniqueOrThrowArgs<ExtArgs>,
6985
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>
6986
+ }
6987
+ findFirst: {
6988
+ args: Prisma.ShopifySaleFindFirstArgs<ExtArgs>,
6989
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload> | null
6990
+ }
6991
+ findFirstOrThrow: {
6992
+ args: Prisma.ShopifySaleFindFirstOrThrowArgs<ExtArgs>,
6993
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>
6994
+ }
6995
+ findMany: {
6996
+ args: Prisma.ShopifySaleFindManyArgs<ExtArgs>,
6997
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>[]
6998
+ }
6999
+ create: {
7000
+ args: Prisma.ShopifySaleCreateArgs<ExtArgs>,
7001
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>
7002
+ }
7003
+ createMany: {
7004
+ args: Prisma.ShopifySaleCreateManyArgs<ExtArgs>,
7005
+ result: Prisma.BatchPayload
7006
+ }
7007
+ createManyAndReturn: {
7008
+ args: Prisma.ShopifySaleCreateManyAndReturnArgs<ExtArgs>,
7009
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>[]
7010
+ }
7011
+ delete: {
7012
+ args: Prisma.ShopifySaleDeleteArgs<ExtArgs>,
7013
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>
7014
+ }
7015
+ update: {
7016
+ args: Prisma.ShopifySaleUpdateArgs<ExtArgs>,
7017
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>
7018
+ }
7019
+ deleteMany: {
7020
+ args: Prisma.ShopifySaleDeleteManyArgs<ExtArgs>,
7021
+ result: Prisma.BatchPayload
7022
+ }
7023
+ updateMany: {
7024
+ args: Prisma.ShopifySaleUpdateManyArgs<ExtArgs>,
7025
+ result: Prisma.BatchPayload
7026
+ }
7027
+ upsert: {
7028
+ args: Prisma.ShopifySaleUpsertArgs<ExtArgs>,
7029
+ result: $Utils.PayloadToResult<Prisma.$ShopifySalePayload>
7030
+ }
7031
+ aggregate: {
7032
+ args: Prisma.ShopifySaleAggregateArgs<ExtArgs>,
7033
+ result: $Utils.Optional<AggregateShopifySale>
7034
+ }
7035
+ groupBy: {
7036
+ args: Prisma.ShopifySaleGroupByArgs<ExtArgs>,
7037
+ result: $Utils.Optional<ShopifySaleGroupByOutputType>[]
7038
+ }
7039
+ count: {
7040
+ args: Prisma.ShopifySaleCountArgs<ExtArgs>,
7041
+ result: $Utils.Optional<ShopifySaleCountAggregateOutputType> | number
7042
+ }
7043
+ }
7044
+ }
6873
7045
  }
6874
7046
  } & {
6875
7047
  other: {
@@ -7932,6 +8104,7 @@ export namespace Prisma {
7932
8104
  ExternalAffiliateClick: number
7933
8105
  ImpactRadiusEvent: number
7934
8106
  ShareASaleEvents: number
8107
+ ShopifyDiscountCodes: number
7935
8108
  }
7936
8109
 
7937
8110
  export type OptInCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -7944,6 +8117,7 @@ export namespace Prisma {
7944
8117
  ExternalAffiliateClick?: boolean | OptInCountOutputTypeCountExternalAffiliateClickArgs
7945
8118
  ImpactRadiusEvent?: boolean | OptInCountOutputTypeCountImpactRadiusEventArgs
7946
8119
  ShareASaleEvents?: boolean | OptInCountOutputTypeCountShareASaleEventsArgs
8120
+ ShopifyDiscountCodes?: boolean | OptInCountOutputTypeCountShopifyDiscountCodesArgs
7947
8121
  }
7948
8122
 
7949
8123
  // Custom InputTypes
@@ -8020,6 +8194,13 @@ export namespace Prisma {
8020
8194
  where?: ShareASaleEventWhereInput
8021
8195
  }
8022
8196
 
8197
+ /**
8198
+ * OptInCountOutputType without action
8199
+ */
8200
+ export type OptInCountOutputTypeCountShopifyDiscountCodesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8201
+ where?: ShopifyDiscountCodeWhereInput
8202
+ }
8203
+
8023
8204
 
8024
8205
  /**
8025
8206
  * Count Type SocialPostCountOutputType
@@ -8545,6 +8726,37 @@ export namespace Prisma {
8545
8726
  }
8546
8727
 
8547
8728
 
8729
+ /**
8730
+ * Count Type ShopifyDiscountCodeCountOutputType
8731
+ */
8732
+
8733
+ export type ShopifyDiscountCodeCountOutputType = {
8734
+ shopifySales: number
8735
+ }
8736
+
8737
+ export type ShopifyDiscountCodeCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8738
+ shopifySales?: boolean | ShopifyDiscountCodeCountOutputTypeCountShopifySalesArgs
8739
+ }
8740
+
8741
+ // Custom InputTypes
8742
+ /**
8743
+ * ShopifyDiscountCodeCountOutputType without action
8744
+ */
8745
+ export type ShopifyDiscountCodeCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8746
+ /**
8747
+ * Select specific fields to fetch from the ShopifyDiscountCodeCountOutputType
8748
+ */
8749
+ select?: ShopifyDiscountCodeCountOutputTypeSelect<ExtArgs> | null
8750
+ }
8751
+
8752
+ /**
8753
+ * ShopifyDiscountCodeCountOutputType without action
8754
+ */
8755
+ export type ShopifyDiscountCodeCountOutputTypeCountShopifySalesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8756
+ where?: ShopifySaleWhereInput
8757
+ }
8758
+
8759
+
8548
8760
  /**
8549
8761
  * Models
8550
8762
  */
@@ -47019,6 +47231,7 @@ export namespace Prisma {
47019
47231
  ExternalAffiliateClick?: boolean | OptIn$ExternalAffiliateClickArgs<ExtArgs>
47020
47232
  ImpactRadiusEvent?: boolean | OptIn$ImpactRadiusEventArgs<ExtArgs>
47021
47233
  ShareASaleEvents?: boolean | OptIn$ShareASaleEventsArgs<ExtArgs>
47234
+ ShopifyDiscountCodes?: boolean | OptIn$ShopifyDiscountCodesArgs<ExtArgs>
47022
47235
  _count?: boolean | OptInCountOutputTypeDefaultArgs<ExtArgs>
47023
47236
  }, ExtArgs["result"]["optIn"]>
47024
47237
 
@@ -47081,6 +47294,7 @@ export namespace Prisma {
47081
47294
  ExternalAffiliateClick?: boolean | OptIn$ExternalAffiliateClickArgs<ExtArgs>
47082
47295
  ImpactRadiusEvent?: boolean | OptIn$ImpactRadiusEventArgs<ExtArgs>
47083
47296
  ShareASaleEvents?: boolean | OptIn$ShareASaleEventsArgs<ExtArgs>
47297
+ ShopifyDiscountCodes?: boolean | OptIn$ShopifyDiscountCodesArgs<ExtArgs>
47084
47298
  _count?: boolean | OptInCountOutputTypeDefaultArgs<ExtArgs>
47085
47299
  }
47086
47300
  export type OptInIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -47105,6 +47319,7 @@ export namespace Prisma {
47105
47319
  ExternalAffiliateClick: Prisma.$ExternalAffiliateClickPayload<ExtArgs>[]
47106
47320
  ImpactRadiusEvent: Prisma.$ImpactRadiusEventPayload<ExtArgs>[]
47107
47321
  ShareASaleEvents: Prisma.$ShareASaleEventPayload<ExtArgs>[]
47322
+ ShopifyDiscountCodes: Prisma.$ShopifyDiscountCodePayload<ExtArgs>[]
47108
47323
  }
47109
47324
  scalars: $Extensions.GetPayloadResult<{
47110
47325
  id: number
@@ -47541,6 +47756,8 @@ export namespace Prisma {
47541
47756
 
47542
47757
  ShareASaleEvents<T extends OptIn$ShareASaleEventsArgs<ExtArgs> = {}>(args?: Subset<T, OptIn$ShareASaleEventsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareASaleEventPayload<ExtArgs>, T, 'findMany'> | Null>;
47543
47758
 
47759
+ ShopifyDiscountCodes<T extends OptIn$ShopifyDiscountCodesArgs<ExtArgs> = {}>(args?: Subset<T, OptIn$ShopifyDiscountCodesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findMany'> | Null>;
47760
+
47544
47761
  /**
47545
47762
  * Attaches callbacks for the resolution and/or rejection of the Promise.
47546
47763
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -48114,6 +48331,26 @@ export namespace Prisma {
48114
48331
  distinct?: ShareASaleEventScalarFieldEnum | ShareASaleEventScalarFieldEnum[]
48115
48332
  }
48116
48333
 
48334
+ /**
48335
+ * OptIn.ShopifyDiscountCodes
48336
+ */
48337
+ export type OptIn$ShopifyDiscountCodesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
48338
+ /**
48339
+ * Select specific fields to fetch from the ShopifyDiscountCode
48340
+ */
48341
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
48342
+ /**
48343
+ * Choose, which related nodes to fetch as well
48344
+ */
48345
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
48346
+ where?: ShopifyDiscountCodeWhereInput
48347
+ orderBy?: ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput | ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput[]
48348
+ cursor?: ShopifyDiscountCodeWhereUniqueInput
48349
+ take?: number
48350
+ skip?: number
48351
+ distinct?: ShopifyDiscountCodeScalarFieldEnum | ShopifyDiscountCodeScalarFieldEnum[]
48352
+ }
48353
+
48117
48354
  /**
48118
48355
  * OptIn without action
48119
48356
  */
@@ -76287,36 +76524,39 @@ export namespace Prisma {
76287
76524
 
76288
76525
  export type ShareASaleEventAvgAggregateOutputType = {
76289
76526
  id: number | null
76290
- saleAmount: number | null
76291
- commission: number | null
76527
+ saleAmount: Decimal | null
76528
+ commission: Decimal | null
76292
76529
  optInId: number | null
76293
76530
  }
76294
76531
 
76295
76532
  export type ShareASaleEventSumAggregateOutputType = {
76296
76533
  id: number | null
76297
- saleAmount: number | null
76298
- commission: number | null
76534
+ saleAmount: Decimal | null
76535
+ commission: Decimal | null
76299
76536
  optInId: number | null
76300
76537
  }
76301
76538
 
76302
76539
  export type ShareASaleEventMinAggregateOutputType = {
76303
76540
  id: number | null
76541
+ transactionId: string | null
76304
76542
  created: Date | null
76305
- saleAmount: number | null
76306
- commission: number | null
76543
+ saleAmount: Decimal | null
76544
+ commission: Decimal | null
76307
76545
  optInId: number | null
76308
76546
  }
76309
76547
 
76310
76548
  export type ShareASaleEventMaxAggregateOutputType = {
76311
76549
  id: number | null
76550
+ transactionId: string | null
76312
76551
  created: Date | null
76313
- saleAmount: number | null
76314
- commission: number | null
76552
+ saleAmount: Decimal | null
76553
+ commission: Decimal | null
76315
76554
  optInId: number | null
76316
76555
  }
76317
76556
 
76318
76557
  export type ShareASaleEventCountAggregateOutputType = {
76319
76558
  id: number
76559
+ transactionId: number
76320
76560
  created: number
76321
76561
  saleAmount: number
76322
76562
  commission: number
@@ -76342,6 +76582,7 @@ export namespace Prisma {
76342
76582
 
76343
76583
  export type ShareASaleEventMinAggregateInputType = {
76344
76584
  id?: true
76585
+ transactionId?: true
76345
76586
  created?: true
76346
76587
  saleAmount?: true
76347
76588
  commission?: true
@@ -76350,6 +76591,7 @@ export namespace Prisma {
76350
76591
 
76351
76592
  export type ShareASaleEventMaxAggregateInputType = {
76352
76593
  id?: true
76594
+ transactionId?: true
76353
76595
  created?: true
76354
76596
  saleAmount?: true
76355
76597
  commission?: true
@@ -76358,6 +76600,7 @@ export namespace Prisma {
76358
76600
 
76359
76601
  export type ShareASaleEventCountAggregateInputType = {
76360
76602
  id?: true
76603
+ transactionId?: true
76361
76604
  created?: true
76362
76605
  saleAmount?: true
76363
76606
  commission?: true
@@ -76454,9 +76697,10 @@ export namespace Prisma {
76454
76697
 
76455
76698
  export type ShareASaleEventGroupByOutputType = {
76456
76699
  id: number
76700
+ transactionId: string | null
76457
76701
  created: Date
76458
- saleAmount: number | null
76459
- commission: number | null
76702
+ saleAmount: Decimal | null
76703
+ commission: Decimal | null
76460
76704
  metaData: JsonValue
76461
76705
  optInId: number | null
76462
76706
  _count: ShareASaleEventCountAggregateOutputType | null
@@ -76482,6 +76726,7 @@ export namespace Prisma {
76482
76726
 
76483
76727
  export type ShareASaleEventSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
76484
76728
  id?: boolean
76729
+ transactionId?: boolean
76485
76730
  created?: boolean
76486
76731
  saleAmount?: boolean
76487
76732
  commission?: boolean
@@ -76492,6 +76737,7 @@ export namespace Prisma {
76492
76737
 
76493
76738
  export type ShareASaleEventSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
76494
76739
  id?: boolean
76740
+ transactionId?: boolean
76495
76741
  created?: boolean
76496
76742
  saleAmount?: boolean
76497
76743
  commission?: boolean
@@ -76502,6 +76748,7 @@ export namespace Prisma {
76502
76748
 
76503
76749
  export type ShareASaleEventSelectScalar = {
76504
76750
  id?: boolean
76751
+ transactionId?: boolean
76505
76752
  created?: boolean
76506
76753
  saleAmount?: boolean
76507
76754
  commission?: boolean
@@ -76523,9 +76770,10 @@ export namespace Prisma {
76523
76770
  }
76524
76771
  scalars: $Extensions.GetPayloadResult<{
76525
76772
  id: number
76773
+ transactionId: string | null
76526
76774
  created: Date
76527
- saleAmount: number | null
76528
- commission: number | null
76775
+ saleAmount: Prisma.Decimal | null
76776
+ commission: Prisma.Decimal | null
76529
76777
  metaData: Prisma.JsonValue
76530
76778
  optInId: number | null
76531
76779
  }, ExtArgs["result"]["shareASaleEvent"]>
@@ -76949,9 +77197,10 @@ export namespace Prisma {
76949
77197
  */
76950
77198
  interface ShareASaleEventFieldRefs {
76951
77199
  readonly id: FieldRef<"ShareASaleEvent", 'Int'>
77200
+ readonly transactionId: FieldRef<"ShareASaleEvent", 'String'>
76952
77201
  readonly created: FieldRef<"ShareASaleEvent", 'DateTime'>
76953
- readonly saleAmount: FieldRef<"ShareASaleEvent", 'Float'>
76954
- readonly commission: FieldRef<"ShareASaleEvent", 'Float'>
77202
+ readonly saleAmount: FieldRef<"ShareASaleEvent", 'Decimal'>
77203
+ readonly commission: FieldRef<"ShareASaleEvent", 'Decimal'>
76955
77204
  readonly metaData: FieldRef<"ShareASaleEvent", 'Json'>
76956
77205
  readonly optInId: FieldRef<"ShareASaleEvent", 'Int'>
76957
77206
  }
@@ -87341,340 +87590,2353 @@ export namespace Prisma {
87341
87590
 
87342
87591
 
87343
87592
  /**
87344
- * Fields of the CampaignToShopifyProduct model
87593
+ * Fields of the CampaignToShopifyProduct model
87594
+ */
87595
+ interface CampaignToShopifyProductFieldRefs {
87596
+ readonly campaignId: FieldRef<"CampaignToShopifyProduct", 'Int'>
87597
+ readonly shopifyProductId: FieldRef<"CampaignToShopifyProduct", 'Int'>
87598
+ }
87599
+
87600
+
87601
+ // Custom InputTypes
87602
+ /**
87603
+ * CampaignToShopifyProduct findUnique
87604
+ */
87605
+ export type CampaignToShopifyProductFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87606
+ /**
87607
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87608
+ */
87609
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87610
+ /**
87611
+ * Choose, which related nodes to fetch as well
87612
+ */
87613
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87614
+ /**
87615
+ * Filter, which CampaignToShopifyProduct to fetch.
87616
+ */
87617
+ where: CampaignToShopifyProductWhereUniqueInput
87618
+ }
87619
+
87620
+ /**
87621
+ * CampaignToShopifyProduct findUniqueOrThrow
87622
+ */
87623
+ export type CampaignToShopifyProductFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87624
+ /**
87625
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87626
+ */
87627
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87628
+ /**
87629
+ * Choose, which related nodes to fetch as well
87630
+ */
87631
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87632
+ /**
87633
+ * Filter, which CampaignToShopifyProduct to fetch.
87634
+ */
87635
+ where: CampaignToShopifyProductWhereUniqueInput
87636
+ }
87637
+
87638
+ /**
87639
+ * CampaignToShopifyProduct findFirst
87640
+ */
87641
+ export type CampaignToShopifyProductFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87642
+ /**
87643
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87644
+ */
87645
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87646
+ /**
87647
+ * Choose, which related nodes to fetch as well
87648
+ */
87649
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87650
+ /**
87651
+ * Filter, which CampaignToShopifyProduct to fetch.
87652
+ */
87653
+ where?: CampaignToShopifyProductWhereInput
87654
+ /**
87655
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87656
+ *
87657
+ * Determine the order of CampaignToShopifyProducts to fetch.
87658
+ */
87659
+ orderBy?: CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput | CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput[]
87660
+ /**
87661
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
87662
+ *
87663
+ * Sets the position for searching for CampaignToShopifyProducts.
87664
+ */
87665
+ cursor?: CampaignToShopifyProductWhereUniqueInput
87666
+ /**
87667
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87668
+ *
87669
+ * Take `±n` CampaignToShopifyProducts from the position of the cursor.
87670
+ */
87671
+ take?: number
87672
+ /**
87673
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87674
+ *
87675
+ * Skip the first `n` CampaignToShopifyProducts.
87676
+ */
87677
+ skip?: number
87678
+ /**
87679
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
87680
+ *
87681
+ * Filter by unique combinations of CampaignToShopifyProducts.
87682
+ */
87683
+ distinct?: CampaignToShopifyProductScalarFieldEnum | CampaignToShopifyProductScalarFieldEnum[]
87684
+ }
87685
+
87686
+ /**
87687
+ * CampaignToShopifyProduct findFirstOrThrow
87688
+ */
87689
+ export type CampaignToShopifyProductFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87690
+ /**
87691
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87692
+ */
87693
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87694
+ /**
87695
+ * Choose, which related nodes to fetch as well
87696
+ */
87697
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87698
+ /**
87699
+ * Filter, which CampaignToShopifyProduct to fetch.
87700
+ */
87701
+ where?: CampaignToShopifyProductWhereInput
87702
+ /**
87703
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87704
+ *
87705
+ * Determine the order of CampaignToShopifyProducts to fetch.
87706
+ */
87707
+ orderBy?: CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput | CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput[]
87708
+ /**
87709
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
87710
+ *
87711
+ * Sets the position for searching for CampaignToShopifyProducts.
87712
+ */
87713
+ cursor?: CampaignToShopifyProductWhereUniqueInput
87714
+ /**
87715
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87716
+ *
87717
+ * Take `±n` CampaignToShopifyProducts from the position of the cursor.
87718
+ */
87719
+ take?: number
87720
+ /**
87721
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87722
+ *
87723
+ * Skip the first `n` CampaignToShopifyProducts.
87724
+ */
87725
+ skip?: number
87726
+ /**
87727
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
87728
+ *
87729
+ * Filter by unique combinations of CampaignToShopifyProducts.
87730
+ */
87731
+ distinct?: CampaignToShopifyProductScalarFieldEnum | CampaignToShopifyProductScalarFieldEnum[]
87732
+ }
87733
+
87734
+ /**
87735
+ * CampaignToShopifyProduct findMany
87736
+ */
87737
+ export type CampaignToShopifyProductFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87738
+ /**
87739
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87740
+ */
87741
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87742
+ /**
87743
+ * Choose, which related nodes to fetch as well
87744
+ */
87745
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87746
+ /**
87747
+ * Filter, which CampaignToShopifyProducts to fetch.
87748
+ */
87749
+ where?: CampaignToShopifyProductWhereInput
87750
+ /**
87751
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87752
+ *
87753
+ * Determine the order of CampaignToShopifyProducts to fetch.
87754
+ */
87755
+ orderBy?: CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput | CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput[]
87756
+ /**
87757
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
87758
+ *
87759
+ * Sets the position for listing CampaignToShopifyProducts.
87760
+ */
87761
+ cursor?: CampaignToShopifyProductWhereUniqueInput
87762
+ /**
87763
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87764
+ *
87765
+ * Take `±n` CampaignToShopifyProducts from the position of the cursor.
87766
+ */
87767
+ take?: number
87768
+ /**
87769
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87770
+ *
87771
+ * Skip the first `n` CampaignToShopifyProducts.
87772
+ */
87773
+ skip?: number
87774
+ distinct?: CampaignToShopifyProductScalarFieldEnum | CampaignToShopifyProductScalarFieldEnum[]
87775
+ }
87776
+
87777
+ /**
87778
+ * CampaignToShopifyProduct create
87779
+ */
87780
+ export type CampaignToShopifyProductCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87781
+ /**
87782
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87783
+ */
87784
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87785
+ /**
87786
+ * Choose, which related nodes to fetch as well
87787
+ */
87788
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87789
+ /**
87790
+ * The data needed to create a CampaignToShopifyProduct.
87791
+ */
87792
+ data: XOR<CampaignToShopifyProductCreateInput, CampaignToShopifyProductUncheckedCreateInput>
87793
+ }
87794
+
87795
+ /**
87796
+ * CampaignToShopifyProduct createMany
87797
+ */
87798
+ export type CampaignToShopifyProductCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87799
+ /**
87800
+ * The data used to create many CampaignToShopifyProducts.
87801
+ */
87802
+ data: CampaignToShopifyProductCreateManyInput | CampaignToShopifyProductCreateManyInput[]
87803
+ skipDuplicates?: boolean
87804
+ }
87805
+
87806
+ /**
87807
+ * CampaignToShopifyProduct createManyAndReturn
87808
+ */
87809
+ export type CampaignToShopifyProductCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87810
+ /**
87811
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87812
+ */
87813
+ select?: CampaignToShopifyProductSelectCreateManyAndReturn<ExtArgs> | null
87814
+ /**
87815
+ * The data used to create many CampaignToShopifyProducts.
87816
+ */
87817
+ data: CampaignToShopifyProductCreateManyInput | CampaignToShopifyProductCreateManyInput[]
87818
+ skipDuplicates?: boolean
87819
+ /**
87820
+ * Choose, which related nodes to fetch as well
87821
+ */
87822
+ include?: CampaignToShopifyProductIncludeCreateManyAndReturn<ExtArgs> | null
87823
+ }
87824
+
87825
+ /**
87826
+ * CampaignToShopifyProduct update
87827
+ */
87828
+ export type CampaignToShopifyProductUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87829
+ /**
87830
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87831
+ */
87832
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87833
+ /**
87834
+ * Choose, which related nodes to fetch as well
87835
+ */
87836
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87837
+ /**
87838
+ * The data needed to update a CampaignToShopifyProduct.
87839
+ */
87840
+ data: XOR<CampaignToShopifyProductUpdateInput, CampaignToShopifyProductUncheckedUpdateInput>
87841
+ /**
87842
+ * Choose, which CampaignToShopifyProduct to update.
87843
+ */
87844
+ where: CampaignToShopifyProductWhereUniqueInput
87845
+ }
87846
+
87847
+ /**
87848
+ * CampaignToShopifyProduct updateMany
87849
+ */
87850
+ export type CampaignToShopifyProductUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87851
+ /**
87852
+ * The data used to update CampaignToShopifyProducts.
87853
+ */
87854
+ data: XOR<CampaignToShopifyProductUpdateManyMutationInput, CampaignToShopifyProductUncheckedUpdateManyInput>
87855
+ /**
87856
+ * Filter which CampaignToShopifyProducts to update
87857
+ */
87858
+ where?: CampaignToShopifyProductWhereInput
87859
+ }
87860
+
87861
+ /**
87862
+ * CampaignToShopifyProduct upsert
87863
+ */
87864
+ export type CampaignToShopifyProductUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87865
+ /**
87866
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87867
+ */
87868
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87869
+ /**
87870
+ * Choose, which related nodes to fetch as well
87871
+ */
87872
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87873
+ /**
87874
+ * The filter to search for the CampaignToShopifyProduct to update in case it exists.
87875
+ */
87876
+ where: CampaignToShopifyProductWhereUniqueInput
87877
+ /**
87878
+ * In case the CampaignToShopifyProduct found by the `where` argument doesn't exist, create a new CampaignToShopifyProduct with this data.
87879
+ */
87880
+ create: XOR<CampaignToShopifyProductCreateInput, CampaignToShopifyProductUncheckedCreateInput>
87881
+ /**
87882
+ * In case the CampaignToShopifyProduct was found with the provided `where` argument, update it with this data.
87883
+ */
87884
+ update: XOR<CampaignToShopifyProductUpdateInput, CampaignToShopifyProductUncheckedUpdateInput>
87885
+ }
87886
+
87887
+ /**
87888
+ * CampaignToShopifyProduct delete
87889
+ */
87890
+ export type CampaignToShopifyProductDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87891
+ /**
87892
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87893
+ */
87894
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87895
+ /**
87896
+ * Choose, which related nodes to fetch as well
87897
+ */
87898
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87899
+ /**
87900
+ * Filter which CampaignToShopifyProduct to delete.
87901
+ */
87902
+ where: CampaignToShopifyProductWhereUniqueInput
87903
+ }
87904
+
87905
+ /**
87906
+ * CampaignToShopifyProduct deleteMany
87907
+ */
87908
+ export type CampaignToShopifyProductDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87909
+ /**
87910
+ * Filter which CampaignToShopifyProducts to delete
87911
+ */
87912
+ where?: CampaignToShopifyProductWhereInput
87913
+ }
87914
+
87915
+ /**
87916
+ * CampaignToShopifyProduct without action
87917
+ */
87918
+ export type CampaignToShopifyProductDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87919
+ /**
87920
+ * Select specific fields to fetch from the CampaignToShopifyProduct
87921
+ */
87922
+ select?: CampaignToShopifyProductSelect<ExtArgs> | null
87923
+ /**
87924
+ * Choose, which related nodes to fetch as well
87925
+ */
87926
+ include?: CampaignToShopifyProductInclude<ExtArgs> | null
87927
+ }
87928
+
87929
+
87930
+ /**
87931
+ * Model ShopifyDiscountCode
87932
+ */
87933
+
87934
+ export type AggregateShopifyDiscountCode = {
87935
+ _count: ShopifyDiscountCodeCountAggregateOutputType | null
87936
+ _avg: ShopifyDiscountCodeAvgAggregateOutputType | null
87937
+ _sum: ShopifyDiscountCodeSumAggregateOutputType | null
87938
+ _min: ShopifyDiscountCodeMinAggregateOutputType | null
87939
+ _max: ShopifyDiscountCodeMaxAggregateOutputType | null
87940
+ }
87941
+
87942
+ export type ShopifyDiscountCodeAvgAggregateOutputType = {
87943
+ id: number | null
87944
+ discount: number | null
87945
+ optInId: number | null
87946
+ }
87947
+
87948
+ export type ShopifyDiscountCodeSumAggregateOutputType = {
87949
+ id: number | null
87950
+ discount: number | null
87951
+ optInId: number | null
87952
+ }
87953
+
87954
+ export type ShopifyDiscountCodeMinAggregateOutputType = {
87955
+ id: number | null
87956
+ code: string | null
87957
+ discount: number | null
87958
+ shopifyPriceRuleId: string | null
87959
+ optInId: number | null
87960
+ }
87961
+
87962
+ export type ShopifyDiscountCodeMaxAggregateOutputType = {
87963
+ id: number | null
87964
+ code: string | null
87965
+ discount: number | null
87966
+ shopifyPriceRuleId: string | null
87967
+ optInId: number | null
87968
+ }
87969
+
87970
+ export type ShopifyDiscountCodeCountAggregateOutputType = {
87971
+ id: number
87972
+ code: number
87973
+ discount: number
87974
+ shopifyPriceRuleId: number
87975
+ optInId: number
87976
+ _all: number
87977
+ }
87978
+
87979
+
87980
+ export type ShopifyDiscountCodeAvgAggregateInputType = {
87981
+ id?: true
87982
+ discount?: true
87983
+ optInId?: true
87984
+ }
87985
+
87986
+ export type ShopifyDiscountCodeSumAggregateInputType = {
87987
+ id?: true
87988
+ discount?: true
87989
+ optInId?: true
87990
+ }
87991
+
87992
+ export type ShopifyDiscountCodeMinAggregateInputType = {
87993
+ id?: true
87994
+ code?: true
87995
+ discount?: true
87996
+ shopifyPriceRuleId?: true
87997
+ optInId?: true
87998
+ }
87999
+
88000
+ export type ShopifyDiscountCodeMaxAggregateInputType = {
88001
+ id?: true
88002
+ code?: true
88003
+ discount?: true
88004
+ shopifyPriceRuleId?: true
88005
+ optInId?: true
88006
+ }
88007
+
88008
+ export type ShopifyDiscountCodeCountAggregateInputType = {
88009
+ id?: true
88010
+ code?: true
88011
+ discount?: true
88012
+ shopifyPriceRuleId?: true
88013
+ optInId?: true
88014
+ _all?: true
88015
+ }
88016
+
88017
+ export type ShopifyDiscountCodeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88018
+ /**
88019
+ * Filter which ShopifyDiscountCode to aggregate.
88020
+ */
88021
+ where?: ShopifyDiscountCodeWhereInput
88022
+ /**
88023
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88024
+ *
88025
+ * Determine the order of ShopifyDiscountCodes to fetch.
88026
+ */
88027
+ orderBy?: ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput | ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput[]
88028
+ /**
88029
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88030
+ *
88031
+ * Sets the start position
88032
+ */
88033
+ cursor?: ShopifyDiscountCodeWhereUniqueInput
88034
+ /**
88035
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88036
+ *
88037
+ * Take `±n` ShopifyDiscountCodes from the position of the cursor.
88038
+ */
88039
+ take?: number
88040
+ /**
88041
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88042
+ *
88043
+ * Skip the first `n` ShopifyDiscountCodes.
88044
+ */
88045
+ skip?: number
88046
+ /**
88047
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88048
+ *
88049
+ * Count returned ShopifyDiscountCodes
88050
+ **/
88051
+ _count?: true | ShopifyDiscountCodeCountAggregateInputType
88052
+ /**
88053
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88054
+ *
88055
+ * Select which fields to average
88056
+ **/
88057
+ _avg?: ShopifyDiscountCodeAvgAggregateInputType
88058
+ /**
88059
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88060
+ *
88061
+ * Select which fields to sum
88062
+ **/
88063
+ _sum?: ShopifyDiscountCodeSumAggregateInputType
88064
+ /**
88065
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88066
+ *
88067
+ * Select which fields to find the minimum value
88068
+ **/
88069
+ _min?: ShopifyDiscountCodeMinAggregateInputType
88070
+ /**
88071
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88072
+ *
88073
+ * Select which fields to find the maximum value
88074
+ **/
88075
+ _max?: ShopifyDiscountCodeMaxAggregateInputType
88076
+ }
88077
+
88078
+ export type GetShopifyDiscountCodeAggregateType<T extends ShopifyDiscountCodeAggregateArgs> = {
88079
+ [P in keyof T & keyof AggregateShopifyDiscountCode]: P extends '_count' | 'count'
88080
+ ? T[P] extends true
88081
+ ? number
88082
+ : GetScalarType<T[P], AggregateShopifyDiscountCode[P]>
88083
+ : GetScalarType<T[P], AggregateShopifyDiscountCode[P]>
88084
+ }
88085
+
88086
+
88087
+
88088
+
88089
+ export type ShopifyDiscountCodeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88090
+ where?: ShopifyDiscountCodeWhereInput
88091
+ orderBy?: ShopifyDiscountCodeOrderByWithAggregationInput | ShopifyDiscountCodeOrderByWithAggregationInput[]
88092
+ by: ShopifyDiscountCodeScalarFieldEnum[] | ShopifyDiscountCodeScalarFieldEnum
88093
+ having?: ShopifyDiscountCodeScalarWhereWithAggregatesInput
88094
+ take?: number
88095
+ skip?: number
88096
+ _count?: ShopifyDiscountCodeCountAggregateInputType | true
88097
+ _avg?: ShopifyDiscountCodeAvgAggregateInputType
88098
+ _sum?: ShopifyDiscountCodeSumAggregateInputType
88099
+ _min?: ShopifyDiscountCodeMinAggregateInputType
88100
+ _max?: ShopifyDiscountCodeMaxAggregateInputType
88101
+ }
88102
+
88103
+ export type ShopifyDiscountCodeGroupByOutputType = {
88104
+ id: number
88105
+ code: string
88106
+ discount: number
88107
+ shopifyPriceRuleId: string | null
88108
+ optInId: number
88109
+ _count: ShopifyDiscountCodeCountAggregateOutputType | null
88110
+ _avg: ShopifyDiscountCodeAvgAggregateOutputType | null
88111
+ _sum: ShopifyDiscountCodeSumAggregateOutputType | null
88112
+ _min: ShopifyDiscountCodeMinAggregateOutputType | null
88113
+ _max: ShopifyDiscountCodeMaxAggregateOutputType | null
88114
+ }
88115
+
88116
+ type GetShopifyDiscountCodeGroupByPayload<T extends ShopifyDiscountCodeGroupByArgs> = Prisma.PrismaPromise<
88117
+ Array<
88118
+ PickEnumerable<ShopifyDiscountCodeGroupByOutputType, T['by']> &
88119
+ {
88120
+ [P in ((keyof T) & (keyof ShopifyDiscountCodeGroupByOutputType))]: P extends '_count'
88121
+ ? T[P] extends boolean
88122
+ ? number
88123
+ : GetScalarType<T[P], ShopifyDiscountCodeGroupByOutputType[P]>
88124
+ : GetScalarType<T[P], ShopifyDiscountCodeGroupByOutputType[P]>
88125
+ }
88126
+ >
88127
+ >
88128
+
88129
+
88130
+ export type ShopifyDiscountCodeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
88131
+ id?: boolean
88132
+ code?: boolean
88133
+ discount?: boolean
88134
+ shopifyPriceRuleId?: boolean
88135
+ optInId?: boolean
88136
+ optIn?: boolean | OptInDefaultArgs<ExtArgs>
88137
+ shopifySales?: boolean | ShopifyDiscountCode$shopifySalesArgs<ExtArgs>
88138
+ _count?: boolean | ShopifyDiscountCodeCountOutputTypeDefaultArgs<ExtArgs>
88139
+ }, ExtArgs["result"]["shopifyDiscountCode"]>
88140
+
88141
+ export type ShopifyDiscountCodeSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
88142
+ id?: boolean
88143
+ code?: boolean
88144
+ discount?: boolean
88145
+ shopifyPriceRuleId?: boolean
88146
+ optInId?: boolean
88147
+ optIn?: boolean | OptInDefaultArgs<ExtArgs>
88148
+ }, ExtArgs["result"]["shopifyDiscountCode"]>
88149
+
88150
+ export type ShopifyDiscountCodeSelectScalar = {
88151
+ id?: boolean
88152
+ code?: boolean
88153
+ discount?: boolean
88154
+ shopifyPriceRuleId?: boolean
88155
+ optInId?: boolean
88156
+ }
88157
+
88158
+ export type ShopifyDiscountCodeInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88159
+ optIn?: boolean | OptInDefaultArgs<ExtArgs>
88160
+ shopifySales?: boolean | ShopifyDiscountCode$shopifySalesArgs<ExtArgs>
88161
+ _count?: boolean | ShopifyDiscountCodeCountOutputTypeDefaultArgs<ExtArgs>
88162
+ }
88163
+ export type ShopifyDiscountCodeIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88164
+ optIn?: boolean | OptInDefaultArgs<ExtArgs>
88165
+ }
88166
+
88167
+ export type $ShopifyDiscountCodePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88168
+ name: "ShopifyDiscountCode"
88169
+ objects: {
88170
+ optIn: Prisma.$OptInPayload<ExtArgs>
88171
+ shopifySales: Prisma.$ShopifySalePayload<ExtArgs>[]
88172
+ }
88173
+ scalars: $Extensions.GetPayloadResult<{
88174
+ id: number
88175
+ code: string
88176
+ discount: number
88177
+ shopifyPriceRuleId: string | null
88178
+ optInId: number
88179
+ }, ExtArgs["result"]["shopifyDiscountCode"]>
88180
+ composites: {}
88181
+ }
88182
+
88183
+ type ShopifyDiscountCodeGetPayload<S extends boolean | null | undefined | ShopifyDiscountCodeDefaultArgs> = $Result.GetResult<Prisma.$ShopifyDiscountCodePayload, S>
88184
+
88185
+ type ShopifyDiscountCodeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
88186
+ Omit<ShopifyDiscountCodeFindManyArgs, 'select' | 'include' | 'distinct'> & {
88187
+ select?: ShopifyDiscountCodeCountAggregateInputType | true
88188
+ }
88189
+
88190
+ export interface ShopifyDiscountCodeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
88191
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShopifyDiscountCode'], meta: { name: 'ShopifyDiscountCode' } }
88192
+ /**
88193
+ * Find zero or one ShopifyDiscountCode that matches the filter.
88194
+ * @param {ShopifyDiscountCodeFindUniqueArgs} args - Arguments to find a ShopifyDiscountCode
88195
+ * @example
88196
+ * // Get one ShopifyDiscountCode
88197
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.findUnique({
88198
+ * where: {
88199
+ * // ... provide filter here
88200
+ * }
88201
+ * })
88202
+ **/
88203
+ findUnique<T extends ShopifyDiscountCodeFindUniqueArgs<ExtArgs>>(
88204
+ args: SelectSubset<T, ShopifyDiscountCodeFindUniqueArgs<ExtArgs>>
88205
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findUnique'> | null, null, ExtArgs>
88206
+
88207
+ /**
88208
+ * Find one ShopifyDiscountCode that matches the filter or throw an error with `error.code='P2025'`
88209
+ * if no matches were found.
88210
+ * @param {ShopifyDiscountCodeFindUniqueOrThrowArgs} args - Arguments to find a ShopifyDiscountCode
88211
+ * @example
88212
+ * // Get one ShopifyDiscountCode
88213
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.findUniqueOrThrow({
88214
+ * where: {
88215
+ * // ... provide filter here
88216
+ * }
88217
+ * })
88218
+ **/
88219
+ findUniqueOrThrow<T extends ShopifyDiscountCodeFindUniqueOrThrowArgs<ExtArgs>>(
88220
+ args?: SelectSubset<T, ShopifyDiscountCodeFindUniqueOrThrowArgs<ExtArgs>>
88221
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findUniqueOrThrow'>, never, ExtArgs>
88222
+
88223
+ /**
88224
+ * Find the first ShopifyDiscountCode that matches the filter.
88225
+ * Note, that providing `undefined` is treated as the value not being there.
88226
+ * Read more here: https://pris.ly/d/null-undefined
88227
+ * @param {ShopifyDiscountCodeFindFirstArgs} args - Arguments to find a ShopifyDiscountCode
88228
+ * @example
88229
+ * // Get one ShopifyDiscountCode
88230
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.findFirst({
88231
+ * where: {
88232
+ * // ... provide filter here
88233
+ * }
88234
+ * })
88235
+ **/
88236
+ findFirst<T extends ShopifyDiscountCodeFindFirstArgs<ExtArgs>>(
88237
+ args?: SelectSubset<T, ShopifyDiscountCodeFindFirstArgs<ExtArgs>>
88238
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findFirst'> | null, null, ExtArgs>
88239
+
88240
+ /**
88241
+ * Find the first ShopifyDiscountCode that matches the filter or
88242
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
88243
+ * Note, that providing `undefined` is treated as the value not being there.
88244
+ * Read more here: https://pris.ly/d/null-undefined
88245
+ * @param {ShopifyDiscountCodeFindFirstOrThrowArgs} args - Arguments to find a ShopifyDiscountCode
88246
+ * @example
88247
+ * // Get one ShopifyDiscountCode
88248
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.findFirstOrThrow({
88249
+ * where: {
88250
+ * // ... provide filter here
88251
+ * }
88252
+ * })
88253
+ **/
88254
+ findFirstOrThrow<T extends ShopifyDiscountCodeFindFirstOrThrowArgs<ExtArgs>>(
88255
+ args?: SelectSubset<T, ShopifyDiscountCodeFindFirstOrThrowArgs<ExtArgs>>
88256
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findFirstOrThrow'>, never, ExtArgs>
88257
+
88258
+ /**
88259
+ * Find zero or more ShopifyDiscountCodes that matches the filter.
88260
+ * Note, that providing `undefined` is treated as the value not being there.
88261
+ * Read more here: https://pris.ly/d/null-undefined
88262
+ * @param {ShopifyDiscountCodeFindManyArgs} args - Arguments to filter and select certain fields only.
88263
+ * @example
88264
+ * // Get all ShopifyDiscountCodes
88265
+ * const shopifyDiscountCodes = await prisma.shopifyDiscountCode.findMany()
88266
+ *
88267
+ * // Get first 10 ShopifyDiscountCodes
88268
+ * const shopifyDiscountCodes = await prisma.shopifyDiscountCode.findMany({ take: 10 })
88269
+ *
88270
+ * // Only select the `id`
88271
+ * const shopifyDiscountCodeWithIdOnly = await prisma.shopifyDiscountCode.findMany({ select: { id: true } })
88272
+ *
88273
+ **/
88274
+ findMany<T extends ShopifyDiscountCodeFindManyArgs<ExtArgs>>(
88275
+ args?: SelectSubset<T, ShopifyDiscountCodeFindManyArgs<ExtArgs>>
88276
+ ): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findMany'>>
88277
+
88278
+ /**
88279
+ * Create a ShopifyDiscountCode.
88280
+ * @param {ShopifyDiscountCodeCreateArgs} args - Arguments to create a ShopifyDiscountCode.
88281
+ * @example
88282
+ * // Create one ShopifyDiscountCode
88283
+ * const ShopifyDiscountCode = await prisma.shopifyDiscountCode.create({
88284
+ * data: {
88285
+ * // ... data to create a ShopifyDiscountCode
88286
+ * }
88287
+ * })
88288
+ *
88289
+ **/
88290
+ create<T extends ShopifyDiscountCodeCreateArgs<ExtArgs>>(
88291
+ args: SelectSubset<T, ShopifyDiscountCodeCreateArgs<ExtArgs>>
88292
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'create'>, never, ExtArgs>
88293
+
88294
+ /**
88295
+ * Create many ShopifyDiscountCodes.
88296
+ * @param {ShopifyDiscountCodeCreateManyArgs} args - Arguments to create many ShopifyDiscountCodes.
88297
+ * @example
88298
+ * // Create many ShopifyDiscountCodes
88299
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.createMany({
88300
+ * data: [
88301
+ * // ... provide data here
88302
+ * ]
88303
+ * })
88304
+ *
88305
+ **/
88306
+ createMany<T extends ShopifyDiscountCodeCreateManyArgs<ExtArgs>>(
88307
+ args?: SelectSubset<T, ShopifyDiscountCodeCreateManyArgs<ExtArgs>>
88308
+ ): Prisma.PrismaPromise<BatchPayload>
88309
+
88310
+ /**
88311
+ * Create many ShopifyDiscountCodes and returns the data saved in the database.
88312
+ * @param {ShopifyDiscountCodeCreateManyAndReturnArgs} args - Arguments to create many ShopifyDiscountCodes.
88313
+ * @example
88314
+ * // Create many ShopifyDiscountCodes
88315
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.createManyAndReturn({
88316
+ * data: [
88317
+ * // ... provide data here
88318
+ * ]
88319
+ * })
88320
+ *
88321
+ * // Create many ShopifyDiscountCodes and only return the `id`
88322
+ * const shopifyDiscountCodeWithIdOnly = await prisma.shopifyDiscountCode.createManyAndReturn({
88323
+ * select: { id: true },
88324
+ * data: [
88325
+ * // ... provide data here
88326
+ * ]
88327
+ * })
88328
+ * Note, that providing `undefined` is treated as the value not being there.
88329
+ * Read more here: https://pris.ly/d/null-undefined
88330
+ *
88331
+ **/
88332
+ createManyAndReturn<T extends ShopifyDiscountCodeCreateManyAndReturnArgs<ExtArgs>>(
88333
+ args?: SelectSubset<T, ShopifyDiscountCodeCreateManyAndReturnArgs<ExtArgs>>
88334
+ ): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'createManyAndReturn'>>
88335
+
88336
+ /**
88337
+ * Delete a ShopifyDiscountCode.
88338
+ * @param {ShopifyDiscountCodeDeleteArgs} args - Arguments to delete one ShopifyDiscountCode.
88339
+ * @example
88340
+ * // Delete one ShopifyDiscountCode
88341
+ * const ShopifyDiscountCode = await prisma.shopifyDiscountCode.delete({
88342
+ * where: {
88343
+ * // ... filter to delete one ShopifyDiscountCode
88344
+ * }
88345
+ * })
88346
+ *
88347
+ **/
88348
+ delete<T extends ShopifyDiscountCodeDeleteArgs<ExtArgs>>(
88349
+ args: SelectSubset<T, ShopifyDiscountCodeDeleteArgs<ExtArgs>>
88350
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'delete'>, never, ExtArgs>
88351
+
88352
+ /**
88353
+ * Update one ShopifyDiscountCode.
88354
+ * @param {ShopifyDiscountCodeUpdateArgs} args - Arguments to update one ShopifyDiscountCode.
88355
+ * @example
88356
+ * // Update one ShopifyDiscountCode
88357
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.update({
88358
+ * where: {
88359
+ * // ... provide filter here
88360
+ * },
88361
+ * data: {
88362
+ * // ... provide data here
88363
+ * }
88364
+ * })
88365
+ *
88366
+ **/
88367
+ update<T extends ShopifyDiscountCodeUpdateArgs<ExtArgs>>(
88368
+ args: SelectSubset<T, ShopifyDiscountCodeUpdateArgs<ExtArgs>>
88369
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'update'>, never, ExtArgs>
88370
+
88371
+ /**
88372
+ * Delete zero or more ShopifyDiscountCodes.
88373
+ * @param {ShopifyDiscountCodeDeleteManyArgs} args - Arguments to filter ShopifyDiscountCodes to delete.
88374
+ * @example
88375
+ * // Delete a few ShopifyDiscountCodes
88376
+ * const { count } = await prisma.shopifyDiscountCode.deleteMany({
88377
+ * where: {
88378
+ * // ... provide filter here
88379
+ * }
88380
+ * })
88381
+ *
88382
+ **/
88383
+ deleteMany<T extends ShopifyDiscountCodeDeleteManyArgs<ExtArgs>>(
88384
+ args?: SelectSubset<T, ShopifyDiscountCodeDeleteManyArgs<ExtArgs>>
88385
+ ): Prisma.PrismaPromise<BatchPayload>
88386
+
88387
+ /**
88388
+ * Update zero or more ShopifyDiscountCodes.
88389
+ * Note, that providing `undefined` is treated as the value not being there.
88390
+ * Read more here: https://pris.ly/d/null-undefined
88391
+ * @param {ShopifyDiscountCodeUpdateManyArgs} args - Arguments to update one or more rows.
88392
+ * @example
88393
+ * // Update many ShopifyDiscountCodes
88394
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.updateMany({
88395
+ * where: {
88396
+ * // ... provide filter here
88397
+ * },
88398
+ * data: {
88399
+ * // ... provide data here
88400
+ * }
88401
+ * })
88402
+ *
88403
+ **/
88404
+ updateMany<T extends ShopifyDiscountCodeUpdateManyArgs<ExtArgs>>(
88405
+ args: SelectSubset<T, ShopifyDiscountCodeUpdateManyArgs<ExtArgs>>
88406
+ ): Prisma.PrismaPromise<BatchPayload>
88407
+
88408
+ /**
88409
+ * Create or update one ShopifyDiscountCode.
88410
+ * @param {ShopifyDiscountCodeUpsertArgs} args - Arguments to update or create a ShopifyDiscountCode.
88411
+ * @example
88412
+ * // Update or create a ShopifyDiscountCode
88413
+ * const shopifyDiscountCode = await prisma.shopifyDiscountCode.upsert({
88414
+ * create: {
88415
+ * // ... data to create a ShopifyDiscountCode
88416
+ * },
88417
+ * update: {
88418
+ * // ... in case it already exists, update
88419
+ * },
88420
+ * where: {
88421
+ * // ... the filter for the ShopifyDiscountCode we want to update
88422
+ * }
88423
+ * })
88424
+ **/
88425
+ upsert<T extends ShopifyDiscountCodeUpsertArgs<ExtArgs>>(
88426
+ args: SelectSubset<T, ShopifyDiscountCodeUpsertArgs<ExtArgs>>
88427
+ ): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'upsert'>, never, ExtArgs>
88428
+
88429
+ /**
88430
+ * Count the number of ShopifyDiscountCodes.
88431
+ * Note, that providing `undefined` is treated as the value not being there.
88432
+ * Read more here: https://pris.ly/d/null-undefined
88433
+ * @param {ShopifyDiscountCodeCountArgs} args - Arguments to filter ShopifyDiscountCodes to count.
88434
+ * @example
88435
+ * // Count the number of ShopifyDiscountCodes
88436
+ * const count = await prisma.shopifyDiscountCode.count({
88437
+ * where: {
88438
+ * // ... the filter for the ShopifyDiscountCodes we want to count
88439
+ * }
88440
+ * })
88441
+ **/
88442
+ count<T extends ShopifyDiscountCodeCountArgs>(
88443
+ args?: Subset<T, ShopifyDiscountCodeCountArgs>,
88444
+ ): Prisma.PrismaPromise<
88445
+ T extends $Utils.Record<'select', any>
88446
+ ? T['select'] extends true
88447
+ ? number
88448
+ : GetScalarType<T['select'], ShopifyDiscountCodeCountAggregateOutputType>
88449
+ : number
88450
+ >
88451
+
88452
+ /**
88453
+ * Allows you to perform aggregations operations on a ShopifyDiscountCode.
88454
+ * Note, that providing `undefined` is treated as the value not being there.
88455
+ * Read more here: https://pris.ly/d/null-undefined
88456
+ * @param {ShopifyDiscountCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
88457
+ * @example
88458
+ * // Ordered by age ascending
88459
+ * // Where email contains prisma.io
88460
+ * // Limited to the 10 users
88461
+ * const aggregations = await prisma.user.aggregate({
88462
+ * _avg: {
88463
+ * age: true,
88464
+ * },
88465
+ * where: {
88466
+ * email: {
88467
+ * contains: "prisma.io",
88468
+ * },
88469
+ * },
88470
+ * orderBy: {
88471
+ * age: "asc",
88472
+ * },
88473
+ * take: 10,
88474
+ * })
88475
+ **/
88476
+ aggregate<T extends ShopifyDiscountCodeAggregateArgs>(args: Subset<T, ShopifyDiscountCodeAggregateArgs>): Prisma.PrismaPromise<GetShopifyDiscountCodeAggregateType<T>>
88477
+
88478
+ /**
88479
+ * Group by ShopifyDiscountCode.
88480
+ * Note, that providing `undefined` is treated as the value not being there.
88481
+ * Read more here: https://pris.ly/d/null-undefined
88482
+ * @param {ShopifyDiscountCodeGroupByArgs} args - Group by arguments.
88483
+ * @example
88484
+ * // Group by city, order by createdAt, get count
88485
+ * const result = await prisma.user.groupBy({
88486
+ * by: ['city', 'createdAt'],
88487
+ * orderBy: {
88488
+ * createdAt: true
88489
+ * },
88490
+ * _count: {
88491
+ * _all: true
88492
+ * },
88493
+ * })
88494
+ *
88495
+ **/
88496
+ groupBy<
88497
+ T extends ShopifyDiscountCodeGroupByArgs,
88498
+ HasSelectOrTake extends Or<
88499
+ Extends<'skip', Keys<T>>,
88500
+ Extends<'take', Keys<T>>
88501
+ >,
88502
+ OrderByArg extends True extends HasSelectOrTake
88503
+ ? { orderBy: ShopifyDiscountCodeGroupByArgs['orderBy'] }
88504
+ : { orderBy?: ShopifyDiscountCodeGroupByArgs['orderBy'] },
88505
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
88506
+ ByFields extends MaybeTupleToUnion<T['by']>,
88507
+ ByValid extends Has<ByFields, OrderFields>,
88508
+ HavingFields extends GetHavingFields<T['having']>,
88509
+ HavingValid extends Has<ByFields, HavingFields>,
88510
+ ByEmpty extends T['by'] extends never[] ? True : False,
88511
+ InputErrors extends ByEmpty extends True
88512
+ ? `Error: "by" must not be empty.`
88513
+ : HavingValid extends False
88514
+ ? {
88515
+ [P in HavingFields]: P extends ByFields
88516
+ ? never
88517
+ : P extends string
88518
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
88519
+ : [
88520
+ Error,
88521
+ 'Field ',
88522
+ P,
88523
+ ` in "having" needs to be provided in "by"`,
88524
+ ]
88525
+ }[HavingFields]
88526
+ : 'take' extends Keys<T>
88527
+ ? 'orderBy' extends Keys<T>
88528
+ ? ByValid extends True
88529
+ ? {}
88530
+ : {
88531
+ [P in OrderFields]: P extends ByFields
88532
+ ? never
88533
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
88534
+ }[OrderFields]
88535
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
88536
+ : 'skip' extends Keys<T>
88537
+ ? 'orderBy' extends Keys<T>
88538
+ ? ByValid extends True
88539
+ ? {}
88540
+ : {
88541
+ [P in OrderFields]: P extends ByFields
88542
+ ? never
88543
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
88544
+ }[OrderFields]
88545
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
88546
+ : ByValid extends True
88547
+ ? {}
88548
+ : {
88549
+ [P in OrderFields]: P extends ByFields
88550
+ ? never
88551
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
88552
+ }[OrderFields]
88553
+ >(args: SubsetIntersection<T, ShopifyDiscountCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShopifyDiscountCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
88554
+ /**
88555
+ * Fields of the ShopifyDiscountCode model
88556
+ */
88557
+ readonly fields: ShopifyDiscountCodeFieldRefs;
88558
+ }
88559
+
88560
+ /**
88561
+ * The delegate class that acts as a "Promise-like" for ShopifyDiscountCode.
88562
+ * Why is this prefixed with `Prisma__`?
88563
+ * Because we want to prevent naming conflicts as mentioned in
88564
+ * https://github.com/prisma/prisma-client-js/issues/707
88565
+ */
88566
+ export interface Prisma__ShopifyDiscountCodeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
88567
+ readonly [Symbol.toStringTag]: 'PrismaPromise';
88568
+
88569
+ optIn<T extends OptInDefaultArgs<ExtArgs> = {}>(args?: Subset<T, OptInDefaultArgs<ExtArgs>>): Prisma__OptInClient<$Result.GetResult<Prisma.$OptInPayload<ExtArgs>, T, 'findUniqueOrThrow'> | Null, Null, ExtArgs>;
88570
+
88571
+ shopifySales<T extends ShopifyDiscountCode$shopifySalesArgs<ExtArgs> = {}>(args?: Subset<T, ShopifyDiscountCode$shopifySalesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'findMany'> | Null>;
88572
+
88573
+ /**
88574
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
88575
+ * @param onfulfilled The callback to execute when the Promise is resolved.
88576
+ * @param onrejected The callback to execute when the Promise is rejected.
88577
+ * @returns A Promise for the completion of which ever callback is executed.
88578
+ */
88579
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>;
88580
+ /**
88581
+ * Attaches a callback for only the rejection of the Promise.
88582
+ * @param onrejected The callback to execute when the Promise is rejected.
88583
+ * @returns A Promise for the completion of the callback.
88584
+ */
88585
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>;
88586
+ /**
88587
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
88588
+ * resolved value cannot be modified from the callback.
88589
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
88590
+ * @returns A Promise for the completion of the callback.
88591
+ */
88592
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>;
88593
+ }
88594
+
88595
+
88596
+
88597
+ /**
88598
+ * Fields of the ShopifyDiscountCode model
88599
+ */
88600
+ interface ShopifyDiscountCodeFieldRefs {
88601
+ readonly id: FieldRef<"ShopifyDiscountCode", 'Int'>
88602
+ readonly code: FieldRef<"ShopifyDiscountCode", 'String'>
88603
+ readonly discount: FieldRef<"ShopifyDiscountCode", 'Float'>
88604
+ readonly shopifyPriceRuleId: FieldRef<"ShopifyDiscountCode", 'String'>
88605
+ readonly optInId: FieldRef<"ShopifyDiscountCode", 'Int'>
88606
+ }
88607
+
88608
+
88609
+ // Custom InputTypes
88610
+ /**
88611
+ * ShopifyDiscountCode findUnique
88612
+ */
88613
+ export type ShopifyDiscountCodeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88614
+ /**
88615
+ * Select specific fields to fetch from the ShopifyDiscountCode
88616
+ */
88617
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88618
+ /**
88619
+ * Choose, which related nodes to fetch as well
88620
+ */
88621
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88622
+ /**
88623
+ * Filter, which ShopifyDiscountCode to fetch.
88624
+ */
88625
+ where: ShopifyDiscountCodeWhereUniqueInput
88626
+ }
88627
+
88628
+ /**
88629
+ * ShopifyDiscountCode findUniqueOrThrow
88630
+ */
88631
+ export type ShopifyDiscountCodeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88632
+ /**
88633
+ * Select specific fields to fetch from the ShopifyDiscountCode
88634
+ */
88635
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88636
+ /**
88637
+ * Choose, which related nodes to fetch as well
88638
+ */
88639
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88640
+ /**
88641
+ * Filter, which ShopifyDiscountCode to fetch.
88642
+ */
88643
+ where: ShopifyDiscountCodeWhereUniqueInput
88644
+ }
88645
+
88646
+ /**
88647
+ * ShopifyDiscountCode findFirst
88648
+ */
88649
+ export type ShopifyDiscountCodeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88650
+ /**
88651
+ * Select specific fields to fetch from the ShopifyDiscountCode
88652
+ */
88653
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88654
+ /**
88655
+ * Choose, which related nodes to fetch as well
88656
+ */
88657
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88658
+ /**
88659
+ * Filter, which ShopifyDiscountCode to fetch.
88660
+ */
88661
+ where?: ShopifyDiscountCodeWhereInput
88662
+ /**
88663
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88664
+ *
88665
+ * Determine the order of ShopifyDiscountCodes to fetch.
88666
+ */
88667
+ orderBy?: ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput | ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput[]
88668
+ /**
88669
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88670
+ *
88671
+ * Sets the position for searching for ShopifyDiscountCodes.
88672
+ */
88673
+ cursor?: ShopifyDiscountCodeWhereUniqueInput
88674
+ /**
88675
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88676
+ *
88677
+ * Take `±n` ShopifyDiscountCodes from the position of the cursor.
88678
+ */
88679
+ take?: number
88680
+ /**
88681
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88682
+ *
88683
+ * Skip the first `n` ShopifyDiscountCodes.
88684
+ */
88685
+ skip?: number
88686
+ /**
88687
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
88688
+ *
88689
+ * Filter by unique combinations of ShopifyDiscountCodes.
88690
+ */
88691
+ distinct?: ShopifyDiscountCodeScalarFieldEnum | ShopifyDiscountCodeScalarFieldEnum[]
88692
+ }
88693
+
88694
+ /**
88695
+ * ShopifyDiscountCode findFirstOrThrow
88696
+ */
88697
+ export type ShopifyDiscountCodeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88698
+ /**
88699
+ * Select specific fields to fetch from the ShopifyDiscountCode
88700
+ */
88701
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88702
+ /**
88703
+ * Choose, which related nodes to fetch as well
88704
+ */
88705
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88706
+ /**
88707
+ * Filter, which ShopifyDiscountCode to fetch.
88708
+ */
88709
+ where?: ShopifyDiscountCodeWhereInput
88710
+ /**
88711
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88712
+ *
88713
+ * Determine the order of ShopifyDiscountCodes to fetch.
88714
+ */
88715
+ orderBy?: ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput | ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput[]
88716
+ /**
88717
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88718
+ *
88719
+ * Sets the position for searching for ShopifyDiscountCodes.
88720
+ */
88721
+ cursor?: ShopifyDiscountCodeWhereUniqueInput
88722
+ /**
88723
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88724
+ *
88725
+ * Take `±n` ShopifyDiscountCodes from the position of the cursor.
88726
+ */
88727
+ take?: number
88728
+ /**
88729
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88730
+ *
88731
+ * Skip the first `n` ShopifyDiscountCodes.
88732
+ */
88733
+ skip?: number
88734
+ /**
88735
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
88736
+ *
88737
+ * Filter by unique combinations of ShopifyDiscountCodes.
88738
+ */
88739
+ distinct?: ShopifyDiscountCodeScalarFieldEnum | ShopifyDiscountCodeScalarFieldEnum[]
88740
+ }
88741
+
88742
+ /**
88743
+ * ShopifyDiscountCode findMany
88744
+ */
88745
+ export type ShopifyDiscountCodeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88746
+ /**
88747
+ * Select specific fields to fetch from the ShopifyDiscountCode
88748
+ */
88749
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88750
+ /**
88751
+ * Choose, which related nodes to fetch as well
88752
+ */
88753
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88754
+ /**
88755
+ * Filter, which ShopifyDiscountCodes to fetch.
88756
+ */
88757
+ where?: ShopifyDiscountCodeWhereInput
88758
+ /**
88759
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88760
+ *
88761
+ * Determine the order of ShopifyDiscountCodes to fetch.
88762
+ */
88763
+ orderBy?: ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput | ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput[]
88764
+ /**
88765
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88766
+ *
88767
+ * Sets the position for listing ShopifyDiscountCodes.
88768
+ */
88769
+ cursor?: ShopifyDiscountCodeWhereUniqueInput
88770
+ /**
88771
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88772
+ *
88773
+ * Take `±n` ShopifyDiscountCodes from the position of the cursor.
88774
+ */
88775
+ take?: number
88776
+ /**
88777
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88778
+ *
88779
+ * Skip the first `n` ShopifyDiscountCodes.
88780
+ */
88781
+ skip?: number
88782
+ distinct?: ShopifyDiscountCodeScalarFieldEnum | ShopifyDiscountCodeScalarFieldEnum[]
88783
+ }
88784
+
88785
+ /**
88786
+ * ShopifyDiscountCode create
88787
+ */
88788
+ export type ShopifyDiscountCodeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88789
+ /**
88790
+ * Select specific fields to fetch from the ShopifyDiscountCode
88791
+ */
88792
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88793
+ /**
88794
+ * Choose, which related nodes to fetch as well
88795
+ */
88796
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88797
+ /**
88798
+ * The data needed to create a ShopifyDiscountCode.
88799
+ */
88800
+ data: XOR<ShopifyDiscountCodeCreateInput, ShopifyDiscountCodeUncheckedCreateInput>
88801
+ }
88802
+
88803
+ /**
88804
+ * ShopifyDiscountCode createMany
88805
+ */
88806
+ export type ShopifyDiscountCodeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88807
+ /**
88808
+ * The data used to create many ShopifyDiscountCodes.
88809
+ */
88810
+ data: ShopifyDiscountCodeCreateManyInput | ShopifyDiscountCodeCreateManyInput[]
88811
+ skipDuplicates?: boolean
88812
+ }
88813
+
88814
+ /**
88815
+ * ShopifyDiscountCode createManyAndReturn
88816
+ */
88817
+ export type ShopifyDiscountCodeCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88818
+ /**
88819
+ * Select specific fields to fetch from the ShopifyDiscountCode
88820
+ */
88821
+ select?: ShopifyDiscountCodeSelectCreateManyAndReturn<ExtArgs> | null
88822
+ /**
88823
+ * The data used to create many ShopifyDiscountCodes.
88824
+ */
88825
+ data: ShopifyDiscountCodeCreateManyInput | ShopifyDiscountCodeCreateManyInput[]
88826
+ skipDuplicates?: boolean
88827
+ /**
88828
+ * Choose, which related nodes to fetch as well
88829
+ */
88830
+ include?: ShopifyDiscountCodeIncludeCreateManyAndReturn<ExtArgs> | null
88831
+ }
88832
+
88833
+ /**
88834
+ * ShopifyDiscountCode update
88835
+ */
88836
+ export type ShopifyDiscountCodeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88837
+ /**
88838
+ * Select specific fields to fetch from the ShopifyDiscountCode
88839
+ */
88840
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88841
+ /**
88842
+ * Choose, which related nodes to fetch as well
88843
+ */
88844
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88845
+ /**
88846
+ * The data needed to update a ShopifyDiscountCode.
88847
+ */
88848
+ data: XOR<ShopifyDiscountCodeUpdateInput, ShopifyDiscountCodeUncheckedUpdateInput>
88849
+ /**
88850
+ * Choose, which ShopifyDiscountCode to update.
88851
+ */
88852
+ where: ShopifyDiscountCodeWhereUniqueInput
88853
+ }
88854
+
88855
+ /**
88856
+ * ShopifyDiscountCode updateMany
88857
+ */
88858
+ export type ShopifyDiscountCodeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88859
+ /**
88860
+ * The data used to update ShopifyDiscountCodes.
88861
+ */
88862
+ data: XOR<ShopifyDiscountCodeUpdateManyMutationInput, ShopifyDiscountCodeUncheckedUpdateManyInput>
88863
+ /**
88864
+ * Filter which ShopifyDiscountCodes to update
88865
+ */
88866
+ where?: ShopifyDiscountCodeWhereInput
88867
+ }
88868
+
88869
+ /**
88870
+ * ShopifyDiscountCode upsert
88871
+ */
88872
+ export type ShopifyDiscountCodeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88873
+ /**
88874
+ * Select specific fields to fetch from the ShopifyDiscountCode
88875
+ */
88876
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88877
+ /**
88878
+ * Choose, which related nodes to fetch as well
88879
+ */
88880
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88881
+ /**
88882
+ * The filter to search for the ShopifyDiscountCode to update in case it exists.
88883
+ */
88884
+ where: ShopifyDiscountCodeWhereUniqueInput
88885
+ /**
88886
+ * In case the ShopifyDiscountCode found by the `where` argument doesn't exist, create a new ShopifyDiscountCode with this data.
88887
+ */
88888
+ create: XOR<ShopifyDiscountCodeCreateInput, ShopifyDiscountCodeUncheckedCreateInput>
88889
+ /**
88890
+ * In case the ShopifyDiscountCode was found with the provided `where` argument, update it with this data.
88891
+ */
88892
+ update: XOR<ShopifyDiscountCodeUpdateInput, ShopifyDiscountCodeUncheckedUpdateInput>
88893
+ }
88894
+
88895
+ /**
88896
+ * ShopifyDiscountCode delete
88897
+ */
88898
+ export type ShopifyDiscountCodeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88899
+ /**
88900
+ * Select specific fields to fetch from the ShopifyDiscountCode
88901
+ */
88902
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88903
+ /**
88904
+ * Choose, which related nodes to fetch as well
88905
+ */
88906
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88907
+ /**
88908
+ * Filter which ShopifyDiscountCode to delete.
88909
+ */
88910
+ where: ShopifyDiscountCodeWhereUniqueInput
88911
+ }
88912
+
88913
+ /**
88914
+ * ShopifyDiscountCode deleteMany
88915
+ */
88916
+ export type ShopifyDiscountCodeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88917
+ /**
88918
+ * Filter which ShopifyDiscountCodes to delete
88919
+ */
88920
+ where?: ShopifyDiscountCodeWhereInput
88921
+ }
88922
+
88923
+ /**
88924
+ * ShopifyDiscountCode.shopifySales
88925
+ */
88926
+ export type ShopifyDiscountCode$shopifySalesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88927
+ /**
88928
+ * Select specific fields to fetch from the ShopifySale
88929
+ */
88930
+ select?: ShopifySaleSelect<ExtArgs> | null
88931
+ /**
88932
+ * Choose, which related nodes to fetch as well
88933
+ */
88934
+ include?: ShopifySaleInclude<ExtArgs> | null
88935
+ where?: ShopifySaleWhereInput
88936
+ orderBy?: ShopifySaleOrderByWithRelationAndSearchRelevanceInput | ShopifySaleOrderByWithRelationAndSearchRelevanceInput[]
88937
+ cursor?: ShopifySaleWhereUniqueInput
88938
+ take?: number
88939
+ skip?: number
88940
+ distinct?: ShopifySaleScalarFieldEnum | ShopifySaleScalarFieldEnum[]
88941
+ }
88942
+
88943
+ /**
88944
+ * ShopifyDiscountCode without action
88945
+ */
88946
+ export type ShopifyDiscountCodeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
88947
+ /**
88948
+ * Select specific fields to fetch from the ShopifyDiscountCode
88949
+ */
88950
+ select?: ShopifyDiscountCodeSelect<ExtArgs> | null
88951
+ /**
88952
+ * Choose, which related nodes to fetch as well
88953
+ */
88954
+ include?: ShopifyDiscountCodeInclude<ExtArgs> | null
88955
+ }
88956
+
88957
+
88958
+ /**
88959
+ * Model ShopifySale
88960
+ */
88961
+
88962
+ export type AggregateShopifySale = {
88963
+ _count: ShopifySaleCountAggregateOutputType | null
88964
+ _avg: ShopifySaleAvgAggregateOutputType | null
88965
+ _sum: ShopifySaleSumAggregateOutputType | null
88966
+ _min: ShopifySaleMinAggregateOutputType | null
88967
+ _max: ShopifySaleMaxAggregateOutputType | null
88968
+ }
88969
+
88970
+ export type ShopifySaleAvgAggregateOutputType = {
88971
+ id: number | null
88972
+ amount: number | null
88973
+ discountCodeId: number | null
88974
+ }
88975
+
88976
+ export type ShopifySaleSumAggregateOutputType = {
88977
+ id: number | null
88978
+ amount: number | null
88979
+ discountCodeId: number | null
88980
+ }
88981
+
88982
+ export type ShopifySaleMinAggregateOutputType = {
88983
+ id: number | null
88984
+ amount: number | null
88985
+ discountCodeId: number | null
88986
+ }
88987
+
88988
+ export type ShopifySaleMaxAggregateOutputType = {
88989
+ id: number | null
88990
+ amount: number | null
88991
+ discountCodeId: number | null
88992
+ }
88993
+
88994
+ export type ShopifySaleCountAggregateOutputType = {
88995
+ id: number
88996
+ amount: number
88997
+ metaData: number
88998
+ discountCodeId: number
88999
+ _all: number
89000
+ }
89001
+
89002
+
89003
+ export type ShopifySaleAvgAggregateInputType = {
89004
+ id?: true
89005
+ amount?: true
89006
+ discountCodeId?: true
89007
+ }
89008
+
89009
+ export type ShopifySaleSumAggregateInputType = {
89010
+ id?: true
89011
+ amount?: true
89012
+ discountCodeId?: true
89013
+ }
89014
+
89015
+ export type ShopifySaleMinAggregateInputType = {
89016
+ id?: true
89017
+ amount?: true
89018
+ discountCodeId?: true
89019
+ }
89020
+
89021
+ export type ShopifySaleMaxAggregateInputType = {
89022
+ id?: true
89023
+ amount?: true
89024
+ discountCodeId?: true
89025
+ }
89026
+
89027
+ export type ShopifySaleCountAggregateInputType = {
89028
+ id?: true
89029
+ amount?: true
89030
+ metaData?: true
89031
+ discountCodeId?: true
89032
+ _all?: true
89033
+ }
89034
+
89035
+ export type ShopifySaleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89036
+ /**
89037
+ * Filter which ShopifySale to aggregate.
89038
+ */
89039
+ where?: ShopifySaleWhereInput
89040
+ /**
89041
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
89042
+ *
89043
+ * Determine the order of ShopifySales to fetch.
89044
+ */
89045
+ orderBy?: ShopifySaleOrderByWithRelationAndSearchRelevanceInput | ShopifySaleOrderByWithRelationAndSearchRelevanceInput[]
89046
+ /**
89047
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
89048
+ *
89049
+ * Sets the start position
89050
+ */
89051
+ cursor?: ShopifySaleWhereUniqueInput
89052
+ /**
89053
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
89054
+ *
89055
+ * Take `±n` ShopifySales from the position of the cursor.
89056
+ */
89057
+ take?: number
89058
+ /**
89059
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
89060
+ *
89061
+ * Skip the first `n` ShopifySales.
89062
+ */
89063
+ skip?: number
89064
+ /**
89065
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89066
+ *
89067
+ * Count returned ShopifySales
89068
+ **/
89069
+ _count?: true | ShopifySaleCountAggregateInputType
89070
+ /**
89071
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89072
+ *
89073
+ * Select which fields to average
89074
+ **/
89075
+ _avg?: ShopifySaleAvgAggregateInputType
89076
+ /**
89077
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89078
+ *
89079
+ * Select which fields to sum
89080
+ **/
89081
+ _sum?: ShopifySaleSumAggregateInputType
89082
+ /**
89083
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89084
+ *
89085
+ * Select which fields to find the minimum value
89086
+ **/
89087
+ _min?: ShopifySaleMinAggregateInputType
89088
+ /**
89089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89090
+ *
89091
+ * Select which fields to find the maximum value
89092
+ **/
89093
+ _max?: ShopifySaleMaxAggregateInputType
89094
+ }
89095
+
89096
+ export type GetShopifySaleAggregateType<T extends ShopifySaleAggregateArgs> = {
89097
+ [P in keyof T & keyof AggregateShopifySale]: P extends '_count' | 'count'
89098
+ ? T[P] extends true
89099
+ ? number
89100
+ : GetScalarType<T[P], AggregateShopifySale[P]>
89101
+ : GetScalarType<T[P], AggregateShopifySale[P]>
89102
+ }
89103
+
89104
+
89105
+
89106
+
89107
+ export type ShopifySaleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89108
+ where?: ShopifySaleWhereInput
89109
+ orderBy?: ShopifySaleOrderByWithAggregationInput | ShopifySaleOrderByWithAggregationInput[]
89110
+ by: ShopifySaleScalarFieldEnum[] | ShopifySaleScalarFieldEnum
89111
+ having?: ShopifySaleScalarWhereWithAggregatesInput
89112
+ take?: number
89113
+ skip?: number
89114
+ _count?: ShopifySaleCountAggregateInputType | true
89115
+ _avg?: ShopifySaleAvgAggregateInputType
89116
+ _sum?: ShopifySaleSumAggregateInputType
89117
+ _min?: ShopifySaleMinAggregateInputType
89118
+ _max?: ShopifySaleMaxAggregateInputType
89119
+ }
89120
+
89121
+ export type ShopifySaleGroupByOutputType = {
89122
+ id: number
89123
+ amount: number
89124
+ metaData: JsonValue | null
89125
+ discountCodeId: number
89126
+ _count: ShopifySaleCountAggregateOutputType | null
89127
+ _avg: ShopifySaleAvgAggregateOutputType | null
89128
+ _sum: ShopifySaleSumAggregateOutputType | null
89129
+ _min: ShopifySaleMinAggregateOutputType | null
89130
+ _max: ShopifySaleMaxAggregateOutputType | null
89131
+ }
89132
+
89133
+ type GetShopifySaleGroupByPayload<T extends ShopifySaleGroupByArgs> = Prisma.PrismaPromise<
89134
+ Array<
89135
+ PickEnumerable<ShopifySaleGroupByOutputType, T['by']> &
89136
+ {
89137
+ [P in ((keyof T) & (keyof ShopifySaleGroupByOutputType))]: P extends '_count'
89138
+ ? T[P] extends boolean
89139
+ ? number
89140
+ : GetScalarType<T[P], ShopifySaleGroupByOutputType[P]>
89141
+ : GetScalarType<T[P], ShopifySaleGroupByOutputType[P]>
89142
+ }
89143
+ >
89144
+ >
89145
+
89146
+
89147
+ export type ShopifySaleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
89148
+ id?: boolean
89149
+ amount?: boolean
89150
+ metaData?: boolean
89151
+ discountCodeId?: boolean
89152
+ discountCode?: boolean | ShopifyDiscountCodeDefaultArgs<ExtArgs>
89153
+ }, ExtArgs["result"]["shopifySale"]>
89154
+
89155
+ export type ShopifySaleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
89156
+ id?: boolean
89157
+ amount?: boolean
89158
+ metaData?: boolean
89159
+ discountCodeId?: boolean
89160
+ discountCode?: boolean | ShopifyDiscountCodeDefaultArgs<ExtArgs>
89161
+ }, ExtArgs["result"]["shopifySale"]>
89162
+
89163
+ export type ShopifySaleSelectScalar = {
89164
+ id?: boolean
89165
+ amount?: boolean
89166
+ metaData?: boolean
89167
+ discountCodeId?: boolean
89168
+ }
89169
+
89170
+ export type ShopifySaleInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89171
+ discountCode?: boolean | ShopifyDiscountCodeDefaultArgs<ExtArgs>
89172
+ }
89173
+ export type ShopifySaleIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89174
+ discountCode?: boolean | ShopifyDiscountCodeDefaultArgs<ExtArgs>
89175
+ }
89176
+
89177
+ export type $ShopifySalePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89178
+ name: "ShopifySale"
89179
+ objects: {
89180
+ discountCode: Prisma.$ShopifyDiscountCodePayload<ExtArgs>
89181
+ }
89182
+ scalars: $Extensions.GetPayloadResult<{
89183
+ id: number
89184
+ amount: number
89185
+ metaData: Prisma.JsonValue | null
89186
+ discountCodeId: number
89187
+ }, ExtArgs["result"]["shopifySale"]>
89188
+ composites: {}
89189
+ }
89190
+
89191
+ type ShopifySaleGetPayload<S extends boolean | null | undefined | ShopifySaleDefaultArgs> = $Result.GetResult<Prisma.$ShopifySalePayload, S>
89192
+
89193
+ type ShopifySaleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
89194
+ Omit<ShopifySaleFindManyArgs, 'select' | 'include' | 'distinct'> & {
89195
+ select?: ShopifySaleCountAggregateInputType | true
89196
+ }
89197
+
89198
+ export interface ShopifySaleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
89199
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShopifySale'], meta: { name: 'ShopifySale' } }
89200
+ /**
89201
+ * Find zero or one ShopifySale that matches the filter.
89202
+ * @param {ShopifySaleFindUniqueArgs} args - Arguments to find a ShopifySale
89203
+ * @example
89204
+ * // Get one ShopifySale
89205
+ * const shopifySale = await prisma.shopifySale.findUnique({
89206
+ * where: {
89207
+ * // ... provide filter here
89208
+ * }
89209
+ * })
89210
+ **/
89211
+ findUnique<T extends ShopifySaleFindUniqueArgs<ExtArgs>>(
89212
+ args: SelectSubset<T, ShopifySaleFindUniqueArgs<ExtArgs>>
89213
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'findUnique'> | null, null, ExtArgs>
89214
+
89215
+ /**
89216
+ * Find one ShopifySale that matches the filter or throw an error with `error.code='P2025'`
89217
+ * if no matches were found.
89218
+ * @param {ShopifySaleFindUniqueOrThrowArgs} args - Arguments to find a ShopifySale
89219
+ * @example
89220
+ * // Get one ShopifySale
89221
+ * const shopifySale = await prisma.shopifySale.findUniqueOrThrow({
89222
+ * where: {
89223
+ * // ... provide filter here
89224
+ * }
89225
+ * })
89226
+ **/
89227
+ findUniqueOrThrow<T extends ShopifySaleFindUniqueOrThrowArgs<ExtArgs>>(
89228
+ args?: SelectSubset<T, ShopifySaleFindUniqueOrThrowArgs<ExtArgs>>
89229
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'findUniqueOrThrow'>, never, ExtArgs>
89230
+
89231
+ /**
89232
+ * Find the first ShopifySale that matches the filter.
89233
+ * Note, that providing `undefined` is treated as the value not being there.
89234
+ * Read more here: https://pris.ly/d/null-undefined
89235
+ * @param {ShopifySaleFindFirstArgs} args - Arguments to find a ShopifySale
89236
+ * @example
89237
+ * // Get one ShopifySale
89238
+ * const shopifySale = await prisma.shopifySale.findFirst({
89239
+ * where: {
89240
+ * // ... provide filter here
89241
+ * }
89242
+ * })
89243
+ **/
89244
+ findFirst<T extends ShopifySaleFindFirstArgs<ExtArgs>>(
89245
+ args?: SelectSubset<T, ShopifySaleFindFirstArgs<ExtArgs>>
89246
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'findFirst'> | null, null, ExtArgs>
89247
+
89248
+ /**
89249
+ * Find the first ShopifySale that matches the filter or
89250
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
89251
+ * Note, that providing `undefined` is treated as the value not being there.
89252
+ * Read more here: https://pris.ly/d/null-undefined
89253
+ * @param {ShopifySaleFindFirstOrThrowArgs} args - Arguments to find a ShopifySale
89254
+ * @example
89255
+ * // Get one ShopifySale
89256
+ * const shopifySale = await prisma.shopifySale.findFirstOrThrow({
89257
+ * where: {
89258
+ * // ... provide filter here
89259
+ * }
89260
+ * })
89261
+ **/
89262
+ findFirstOrThrow<T extends ShopifySaleFindFirstOrThrowArgs<ExtArgs>>(
89263
+ args?: SelectSubset<T, ShopifySaleFindFirstOrThrowArgs<ExtArgs>>
89264
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'findFirstOrThrow'>, never, ExtArgs>
89265
+
89266
+ /**
89267
+ * Find zero or more ShopifySales that matches the filter.
89268
+ * Note, that providing `undefined` is treated as the value not being there.
89269
+ * Read more here: https://pris.ly/d/null-undefined
89270
+ * @param {ShopifySaleFindManyArgs} args - Arguments to filter and select certain fields only.
89271
+ * @example
89272
+ * // Get all ShopifySales
89273
+ * const shopifySales = await prisma.shopifySale.findMany()
89274
+ *
89275
+ * // Get first 10 ShopifySales
89276
+ * const shopifySales = await prisma.shopifySale.findMany({ take: 10 })
89277
+ *
89278
+ * // Only select the `id`
89279
+ * const shopifySaleWithIdOnly = await prisma.shopifySale.findMany({ select: { id: true } })
89280
+ *
89281
+ **/
89282
+ findMany<T extends ShopifySaleFindManyArgs<ExtArgs>>(
89283
+ args?: SelectSubset<T, ShopifySaleFindManyArgs<ExtArgs>>
89284
+ ): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'findMany'>>
89285
+
89286
+ /**
89287
+ * Create a ShopifySale.
89288
+ * @param {ShopifySaleCreateArgs} args - Arguments to create a ShopifySale.
89289
+ * @example
89290
+ * // Create one ShopifySale
89291
+ * const ShopifySale = await prisma.shopifySale.create({
89292
+ * data: {
89293
+ * // ... data to create a ShopifySale
89294
+ * }
89295
+ * })
89296
+ *
89297
+ **/
89298
+ create<T extends ShopifySaleCreateArgs<ExtArgs>>(
89299
+ args: SelectSubset<T, ShopifySaleCreateArgs<ExtArgs>>
89300
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'create'>, never, ExtArgs>
89301
+
89302
+ /**
89303
+ * Create many ShopifySales.
89304
+ * @param {ShopifySaleCreateManyArgs} args - Arguments to create many ShopifySales.
89305
+ * @example
89306
+ * // Create many ShopifySales
89307
+ * const shopifySale = await prisma.shopifySale.createMany({
89308
+ * data: [
89309
+ * // ... provide data here
89310
+ * ]
89311
+ * })
89312
+ *
89313
+ **/
89314
+ createMany<T extends ShopifySaleCreateManyArgs<ExtArgs>>(
89315
+ args?: SelectSubset<T, ShopifySaleCreateManyArgs<ExtArgs>>
89316
+ ): Prisma.PrismaPromise<BatchPayload>
89317
+
89318
+ /**
89319
+ * Create many ShopifySales and returns the data saved in the database.
89320
+ * @param {ShopifySaleCreateManyAndReturnArgs} args - Arguments to create many ShopifySales.
89321
+ * @example
89322
+ * // Create many ShopifySales
89323
+ * const shopifySale = await prisma.shopifySale.createManyAndReturn({
89324
+ * data: [
89325
+ * // ... provide data here
89326
+ * ]
89327
+ * })
89328
+ *
89329
+ * // Create many ShopifySales and only return the `id`
89330
+ * const shopifySaleWithIdOnly = await prisma.shopifySale.createManyAndReturn({
89331
+ * select: { id: true },
89332
+ * data: [
89333
+ * // ... provide data here
89334
+ * ]
89335
+ * })
89336
+ * Note, that providing `undefined` is treated as the value not being there.
89337
+ * Read more here: https://pris.ly/d/null-undefined
89338
+ *
89339
+ **/
89340
+ createManyAndReturn<T extends ShopifySaleCreateManyAndReturnArgs<ExtArgs>>(
89341
+ args?: SelectSubset<T, ShopifySaleCreateManyAndReturnArgs<ExtArgs>>
89342
+ ): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'createManyAndReturn'>>
89343
+
89344
+ /**
89345
+ * Delete a ShopifySale.
89346
+ * @param {ShopifySaleDeleteArgs} args - Arguments to delete one ShopifySale.
89347
+ * @example
89348
+ * // Delete one ShopifySale
89349
+ * const ShopifySale = await prisma.shopifySale.delete({
89350
+ * where: {
89351
+ * // ... filter to delete one ShopifySale
89352
+ * }
89353
+ * })
89354
+ *
89355
+ **/
89356
+ delete<T extends ShopifySaleDeleteArgs<ExtArgs>>(
89357
+ args: SelectSubset<T, ShopifySaleDeleteArgs<ExtArgs>>
89358
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'delete'>, never, ExtArgs>
89359
+
89360
+ /**
89361
+ * Update one ShopifySale.
89362
+ * @param {ShopifySaleUpdateArgs} args - Arguments to update one ShopifySale.
89363
+ * @example
89364
+ * // Update one ShopifySale
89365
+ * const shopifySale = await prisma.shopifySale.update({
89366
+ * where: {
89367
+ * // ... provide filter here
89368
+ * },
89369
+ * data: {
89370
+ * // ... provide data here
89371
+ * }
89372
+ * })
89373
+ *
89374
+ **/
89375
+ update<T extends ShopifySaleUpdateArgs<ExtArgs>>(
89376
+ args: SelectSubset<T, ShopifySaleUpdateArgs<ExtArgs>>
89377
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'update'>, never, ExtArgs>
89378
+
89379
+ /**
89380
+ * Delete zero or more ShopifySales.
89381
+ * @param {ShopifySaleDeleteManyArgs} args - Arguments to filter ShopifySales to delete.
89382
+ * @example
89383
+ * // Delete a few ShopifySales
89384
+ * const { count } = await prisma.shopifySale.deleteMany({
89385
+ * where: {
89386
+ * // ... provide filter here
89387
+ * }
89388
+ * })
89389
+ *
89390
+ **/
89391
+ deleteMany<T extends ShopifySaleDeleteManyArgs<ExtArgs>>(
89392
+ args?: SelectSubset<T, ShopifySaleDeleteManyArgs<ExtArgs>>
89393
+ ): Prisma.PrismaPromise<BatchPayload>
89394
+
89395
+ /**
89396
+ * Update zero or more ShopifySales.
89397
+ * Note, that providing `undefined` is treated as the value not being there.
89398
+ * Read more here: https://pris.ly/d/null-undefined
89399
+ * @param {ShopifySaleUpdateManyArgs} args - Arguments to update one or more rows.
89400
+ * @example
89401
+ * // Update many ShopifySales
89402
+ * const shopifySale = await prisma.shopifySale.updateMany({
89403
+ * where: {
89404
+ * // ... provide filter here
89405
+ * },
89406
+ * data: {
89407
+ * // ... provide data here
89408
+ * }
89409
+ * })
89410
+ *
89411
+ **/
89412
+ updateMany<T extends ShopifySaleUpdateManyArgs<ExtArgs>>(
89413
+ args: SelectSubset<T, ShopifySaleUpdateManyArgs<ExtArgs>>
89414
+ ): Prisma.PrismaPromise<BatchPayload>
89415
+
89416
+ /**
89417
+ * Create or update one ShopifySale.
89418
+ * @param {ShopifySaleUpsertArgs} args - Arguments to update or create a ShopifySale.
89419
+ * @example
89420
+ * // Update or create a ShopifySale
89421
+ * const shopifySale = await prisma.shopifySale.upsert({
89422
+ * create: {
89423
+ * // ... data to create a ShopifySale
89424
+ * },
89425
+ * update: {
89426
+ * // ... in case it already exists, update
89427
+ * },
89428
+ * where: {
89429
+ * // ... the filter for the ShopifySale we want to update
89430
+ * }
89431
+ * })
89432
+ **/
89433
+ upsert<T extends ShopifySaleUpsertArgs<ExtArgs>>(
89434
+ args: SelectSubset<T, ShopifySaleUpsertArgs<ExtArgs>>
89435
+ ): Prisma__ShopifySaleClient<$Result.GetResult<Prisma.$ShopifySalePayload<ExtArgs>, T, 'upsert'>, never, ExtArgs>
89436
+
89437
+ /**
89438
+ * Count the number of ShopifySales.
89439
+ * Note, that providing `undefined` is treated as the value not being there.
89440
+ * Read more here: https://pris.ly/d/null-undefined
89441
+ * @param {ShopifySaleCountArgs} args - Arguments to filter ShopifySales to count.
89442
+ * @example
89443
+ * // Count the number of ShopifySales
89444
+ * const count = await prisma.shopifySale.count({
89445
+ * where: {
89446
+ * // ... the filter for the ShopifySales we want to count
89447
+ * }
89448
+ * })
89449
+ **/
89450
+ count<T extends ShopifySaleCountArgs>(
89451
+ args?: Subset<T, ShopifySaleCountArgs>,
89452
+ ): Prisma.PrismaPromise<
89453
+ T extends $Utils.Record<'select', any>
89454
+ ? T['select'] extends true
89455
+ ? number
89456
+ : GetScalarType<T['select'], ShopifySaleCountAggregateOutputType>
89457
+ : number
89458
+ >
89459
+
89460
+ /**
89461
+ * Allows you to perform aggregations operations on a ShopifySale.
89462
+ * Note, that providing `undefined` is treated as the value not being there.
89463
+ * Read more here: https://pris.ly/d/null-undefined
89464
+ * @param {ShopifySaleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
89465
+ * @example
89466
+ * // Ordered by age ascending
89467
+ * // Where email contains prisma.io
89468
+ * // Limited to the 10 users
89469
+ * const aggregations = await prisma.user.aggregate({
89470
+ * _avg: {
89471
+ * age: true,
89472
+ * },
89473
+ * where: {
89474
+ * email: {
89475
+ * contains: "prisma.io",
89476
+ * },
89477
+ * },
89478
+ * orderBy: {
89479
+ * age: "asc",
89480
+ * },
89481
+ * take: 10,
89482
+ * })
89483
+ **/
89484
+ aggregate<T extends ShopifySaleAggregateArgs>(args: Subset<T, ShopifySaleAggregateArgs>): Prisma.PrismaPromise<GetShopifySaleAggregateType<T>>
89485
+
89486
+ /**
89487
+ * Group by ShopifySale.
89488
+ * Note, that providing `undefined` is treated as the value not being there.
89489
+ * Read more here: https://pris.ly/d/null-undefined
89490
+ * @param {ShopifySaleGroupByArgs} args - Group by arguments.
89491
+ * @example
89492
+ * // Group by city, order by createdAt, get count
89493
+ * const result = await prisma.user.groupBy({
89494
+ * by: ['city', 'createdAt'],
89495
+ * orderBy: {
89496
+ * createdAt: true
89497
+ * },
89498
+ * _count: {
89499
+ * _all: true
89500
+ * },
89501
+ * })
89502
+ *
89503
+ **/
89504
+ groupBy<
89505
+ T extends ShopifySaleGroupByArgs,
89506
+ HasSelectOrTake extends Or<
89507
+ Extends<'skip', Keys<T>>,
89508
+ Extends<'take', Keys<T>>
89509
+ >,
89510
+ OrderByArg extends True extends HasSelectOrTake
89511
+ ? { orderBy: ShopifySaleGroupByArgs['orderBy'] }
89512
+ : { orderBy?: ShopifySaleGroupByArgs['orderBy'] },
89513
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
89514
+ ByFields extends MaybeTupleToUnion<T['by']>,
89515
+ ByValid extends Has<ByFields, OrderFields>,
89516
+ HavingFields extends GetHavingFields<T['having']>,
89517
+ HavingValid extends Has<ByFields, HavingFields>,
89518
+ ByEmpty extends T['by'] extends never[] ? True : False,
89519
+ InputErrors extends ByEmpty extends True
89520
+ ? `Error: "by" must not be empty.`
89521
+ : HavingValid extends False
89522
+ ? {
89523
+ [P in HavingFields]: P extends ByFields
89524
+ ? never
89525
+ : P extends string
89526
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
89527
+ : [
89528
+ Error,
89529
+ 'Field ',
89530
+ P,
89531
+ ` in "having" needs to be provided in "by"`,
89532
+ ]
89533
+ }[HavingFields]
89534
+ : 'take' extends Keys<T>
89535
+ ? 'orderBy' extends Keys<T>
89536
+ ? ByValid extends True
89537
+ ? {}
89538
+ : {
89539
+ [P in OrderFields]: P extends ByFields
89540
+ ? never
89541
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
89542
+ }[OrderFields]
89543
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
89544
+ : 'skip' extends Keys<T>
89545
+ ? 'orderBy' extends Keys<T>
89546
+ ? ByValid extends True
89547
+ ? {}
89548
+ : {
89549
+ [P in OrderFields]: P extends ByFields
89550
+ ? never
89551
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
89552
+ }[OrderFields]
89553
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
89554
+ : ByValid extends True
89555
+ ? {}
89556
+ : {
89557
+ [P in OrderFields]: P extends ByFields
89558
+ ? never
89559
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
89560
+ }[OrderFields]
89561
+ >(args: SubsetIntersection<T, ShopifySaleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShopifySaleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
89562
+ /**
89563
+ * Fields of the ShopifySale model
89564
+ */
89565
+ readonly fields: ShopifySaleFieldRefs;
89566
+ }
89567
+
89568
+ /**
89569
+ * The delegate class that acts as a "Promise-like" for ShopifySale.
89570
+ * Why is this prefixed with `Prisma__`?
89571
+ * Because we want to prevent naming conflicts as mentioned in
89572
+ * https://github.com/prisma/prisma-client-js/issues/707
89573
+ */
89574
+ export interface Prisma__ShopifySaleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
89575
+ readonly [Symbol.toStringTag]: 'PrismaPromise';
89576
+
89577
+ discountCode<T extends ShopifyDiscountCodeDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ShopifyDiscountCodeDefaultArgs<ExtArgs>>): Prisma__ShopifyDiscountCodeClient<$Result.GetResult<Prisma.$ShopifyDiscountCodePayload<ExtArgs>, T, 'findUniqueOrThrow'> | Null, Null, ExtArgs>;
89578
+
89579
+ /**
89580
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
89581
+ * @param onfulfilled The callback to execute when the Promise is resolved.
89582
+ * @param onrejected The callback to execute when the Promise is rejected.
89583
+ * @returns A Promise for the completion of which ever callback is executed.
89584
+ */
89585
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>;
89586
+ /**
89587
+ * Attaches a callback for only the rejection of the Promise.
89588
+ * @param onrejected The callback to execute when the Promise is rejected.
89589
+ * @returns A Promise for the completion of the callback.
89590
+ */
89591
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>;
89592
+ /**
89593
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
89594
+ * resolved value cannot be modified from the callback.
89595
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
89596
+ * @returns A Promise for the completion of the callback.
89597
+ */
89598
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>;
89599
+ }
89600
+
89601
+
89602
+
89603
+ /**
89604
+ * Fields of the ShopifySale model
87345
89605
  */
87346
- interface CampaignToShopifyProductFieldRefs {
87347
- readonly campaignId: FieldRef<"CampaignToShopifyProduct", 'Int'>
87348
- readonly shopifyProductId: FieldRef<"CampaignToShopifyProduct", 'Int'>
89606
+ interface ShopifySaleFieldRefs {
89607
+ readonly id: FieldRef<"ShopifySale", 'Int'>
89608
+ readonly amount: FieldRef<"ShopifySale", 'Float'>
89609
+ readonly metaData: FieldRef<"ShopifySale", 'Json'>
89610
+ readonly discountCodeId: FieldRef<"ShopifySale", 'Int'>
87349
89611
  }
87350
89612
 
87351
89613
 
87352
89614
  // Custom InputTypes
87353
89615
  /**
87354
- * CampaignToShopifyProduct findUnique
89616
+ * ShopifySale findUnique
87355
89617
  */
87356
- export type CampaignToShopifyProductFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89618
+ export type ShopifySaleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87357
89619
  /**
87358
- * Select specific fields to fetch from the CampaignToShopifyProduct
89620
+ * Select specific fields to fetch from the ShopifySale
87359
89621
  */
87360
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89622
+ select?: ShopifySaleSelect<ExtArgs> | null
87361
89623
  /**
87362
89624
  * Choose, which related nodes to fetch as well
87363
89625
  */
87364
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89626
+ include?: ShopifySaleInclude<ExtArgs> | null
87365
89627
  /**
87366
- * Filter, which CampaignToShopifyProduct to fetch.
89628
+ * Filter, which ShopifySale to fetch.
87367
89629
  */
87368
- where: CampaignToShopifyProductWhereUniqueInput
89630
+ where: ShopifySaleWhereUniqueInput
87369
89631
  }
87370
89632
 
87371
89633
  /**
87372
- * CampaignToShopifyProduct findUniqueOrThrow
89634
+ * ShopifySale findUniqueOrThrow
87373
89635
  */
87374
- export type CampaignToShopifyProductFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89636
+ export type ShopifySaleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87375
89637
  /**
87376
- * Select specific fields to fetch from the CampaignToShopifyProduct
89638
+ * Select specific fields to fetch from the ShopifySale
87377
89639
  */
87378
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89640
+ select?: ShopifySaleSelect<ExtArgs> | null
87379
89641
  /**
87380
89642
  * Choose, which related nodes to fetch as well
87381
89643
  */
87382
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89644
+ include?: ShopifySaleInclude<ExtArgs> | null
87383
89645
  /**
87384
- * Filter, which CampaignToShopifyProduct to fetch.
89646
+ * Filter, which ShopifySale to fetch.
87385
89647
  */
87386
- where: CampaignToShopifyProductWhereUniqueInput
89648
+ where: ShopifySaleWhereUniqueInput
87387
89649
  }
87388
89650
 
87389
89651
  /**
87390
- * CampaignToShopifyProduct findFirst
89652
+ * ShopifySale findFirst
87391
89653
  */
87392
- export type CampaignToShopifyProductFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89654
+ export type ShopifySaleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87393
89655
  /**
87394
- * Select specific fields to fetch from the CampaignToShopifyProduct
89656
+ * Select specific fields to fetch from the ShopifySale
87395
89657
  */
87396
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89658
+ select?: ShopifySaleSelect<ExtArgs> | null
87397
89659
  /**
87398
89660
  * Choose, which related nodes to fetch as well
87399
89661
  */
87400
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89662
+ include?: ShopifySaleInclude<ExtArgs> | null
87401
89663
  /**
87402
- * Filter, which CampaignToShopifyProduct to fetch.
89664
+ * Filter, which ShopifySale to fetch.
87403
89665
  */
87404
- where?: CampaignToShopifyProductWhereInput
89666
+ where?: ShopifySaleWhereInput
87405
89667
  /**
87406
89668
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87407
89669
  *
87408
- * Determine the order of CampaignToShopifyProducts to fetch.
89670
+ * Determine the order of ShopifySales to fetch.
87409
89671
  */
87410
- orderBy?: CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput | CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput[]
89672
+ orderBy?: ShopifySaleOrderByWithRelationAndSearchRelevanceInput | ShopifySaleOrderByWithRelationAndSearchRelevanceInput[]
87411
89673
  /**
87412
89674
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
87413
89675
  *
87414
- * Sets the position for searching for CampaignToShopifyProducts.
89676
+ * Sets the position for searching for ShopifySales.
87415
89677
  */
87416
- cursor?: CampaignToShopifyProductWhereUniqueInput
89678
+ cursor?: ShopifySaleWhereUniqueInput
87417
89679
  /**
87418
89680
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87419
89681
  *
87420
- * Take `±n` CampaignToShopifyProducts from the position of the cursor.
89682
+ * Take `±n` ShopifySales from the position of the cursor.
87421
89683
  */
87422
89684
  take?: number
87423
89685
  /**
87424
89686
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87425
89687
  *
87426
- * Skip the first `n` CampaignToShopifyProducts.
89688
+ * Skip the first `n` ShopifySales.
87427
89689
  */
87428
89690
  skip?: number
87429
89691
  /**
87430
89692
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
87431
89693
  *
87432
- * Filter by unique combinations of CampaignToShopifyProducts.
89694
+ * Filter by unique combinations of ShopifySales.
87433
89695
  */
87434
- distinct?: CampaignToShopifyProductScalarFieldEnum | CampaignToShopifyProductScalarFieldEnum[]
89696
+ distinct?: ShopifySaleScalarFieldEnum | ShopifySaleScalarFieldEnum[]
87435
89697
  }
87436
89698
 
87437
89699
  /**
87438
- * CampaignToShopifyProduct findFirstOrThrow
89700
+ * ShopifySale findFirstOrThrow
87439
89701
  */
87440
- export type CampaignToShopifyProductFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89702
+ export type ShopifySaleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87441
89703
  /**
87442
- * Select specific fields to fetch from the CampaignToShopifyProduct
89704
+ * Select specific fields to fetch from the ShopifySale
87443
89705
  */
87444
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89706
+ select?: ShopifySaleSelect<ExtArgs> | null
87445
89707
  /**
87446
89708
  * Choose, which related nodes to fetch as well
87447
89709
  */
87448
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89710
+ include?: ShopifySaleInclude<ExtArgs> | null
87449
89711
  /**
87450
- * Filter, which CampaignToShopifyProduct to fetch.
89712
+ * Filter, which ShopifySale to fetch.
87451
89713
  */
87452
- where?: CampaignToShopifyProductWhereInput
89714
+ where?: ShopifySaleWhereInput
87453
89715
  /**
87454
89716
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87455
89717
  *
87456
- * Determine the order of CampaignToShopifyProducts to fetch.
89718
+ * Determine the order of ShopifySales to fetch.
87457
89719
  */
87458
- orderBy?: CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput | CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput[]
89720
+ orderBy?: ShopifySaleOrderByWithRelationAndSearchRelevanceInput | ShopifySaleOrderByWithRelationAndSearchRelevanceInput[]
87459
89721
  /**
87460
89722
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
87461
89723
  *
87462
- * Sets the position for searching for CampaignToShopifyProducts.
89724
+ * Sets the position for searching for ShopifySales.
87463
89725
  */
87464
- cursor?: CampaignToShopifyProductWhereUniqueInput
89726
+ cursor?: ShopifySaleWhereUniqueInput
87465
89727
  /**
87466
89728
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87467
89729
  *
87468
- * Take `±n` CampaignToShopifyProducts from the position of the cursor.
89730
+ * Take `±n` ShopifySales from the position of the cursor.
87469
89731
  */
87470
89732
  take?: number
87471
89733
  /**
87472
89734
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87473
89735
  *
87474
- * Skip the first `n` CampaignToShopifyProducts.
89736
+ * Skip the first `n` ShopifySales.
87475
89737
  */
87476
89738
  skip?: number
87477
89739
  /**
87478
89740
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
87479
89741
  *
87480
- * Filter by unique combinations of CampaignToShopifyProducts.
89742
+ * Filter by unique combinations of ShopifySales.
87481
89743
  */
87482
- distinct?: CampaignToShopifyProductScalarFieldEnum | CampaignToShopifyProductScalarFieldEnum[]
89744
+ distinct?: ShopifySaleScalarFieldEnum | ShopifySaleScalarFieldEnum[]
87483
89745
  }
87484
89746
 
87485
89747
  /**
87486
- * CampaignToShopifyProduct findMany
89748
+ * ShopifySale findMany
87487
89749
  */
87488
- export type CampaignToShopifyProductFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89750
+ export type ShopifySaleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87489
89751
  /**
87490
- * Select specific fields to fetch from the CampaignToShopifyProduct
89752
+ * Select specific fields to fetch from the ShopifySale
87491
89753
  */
87492
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89754
+ select?: ShopifySaleSelect<ExtArgs> | null
87493
89755
  /**
87494
89756
  * Choose, which related nodes to fetch as well
87495
89757
  */
87496
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89758
+ include?: ShopifySaleInclude<ExtArgs> | null
87497
89759
  /**
87498
- * Filter, which CampaignToShopifyProducts to fetch.
89760
+ * Filter, which ShopifySales to fetch.
87499
89761
  */
87500
- where?: CampaignToShopifyProductWhereInput
89762
+ where?: ShopifySaleWhereInput
87501
89763
  /**
87502
89764
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87503
89765
  *
87504
- * Determine the order of CampaignToShopifyProducts to fetch.
89766
+ * Determine the order of ShopifySales to fetch.
87505
89767
  */
87506
- orderBy?: CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput | CampaignToShopifyProductOrderByWithRelationAndSearchRelevanceInput[]
89768
+ orderBy?: ShopifySaleOrderByWithRelationAndSearchRelevanceInput | ShopifySaleOrderByWithRelationAndSearchRelevanceInput[]
87507
89769
  /**
87508
89770
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
87509
89771
  *
87510
- * Sets the position for listing CampaignToShopifyProducts.
89772
+ * Sets the position for listing ShopifySales.
87511
89773
  */
87512
- cursor?: CampaignToShopifyProductWhereUniqueInput
89774
+ cursor?: ShopifySaleWhereUniqueInput
87513
89775
  /**
87514
89776
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87515
89777
  *
87516
- * Take `±n` CampaignToShopifyProducts from the position of the cursor.
89778
+ * Take `±n` ShopifySales from the position of the cursor.
87517
89779
  */
87518
89780
  take?: number
87519
89781
  /**
87520
89782
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87521
89783
  *
87522
- * Skip the first `n` CampaignToShopifyProducts.
89784
+ * Skip the first `n` ShopifySales.
87523
89785
  */
87524
89786
  skip?: number
87525
- distinct?: CampaignToShopifyProductScalarFieldEnum | CampaignToShopifyProductScalarFieldEnum[]
89787
+ distinct?: ShopifySaleScalarFieldEnum | ShopifySaleScalarFieldEnum[]
87526
89788
  }
87527
89789
 
87528
89790
  /**
87529
- * CampaignToShopifyProduct create
89791
+ * ShopifySale create
87530
89792
  */
87531
- export type CampaignToShopifyProductCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89793
+ export type ShopifySaleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87532
89794
  /**
87533
- * Select specific fields to fetch from the CampaignToShopifyProduct
89795
+ * Select specific fields to fetch from the ShopifySale
87534
89796
  */
87535
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89797
+ select?: ShopifySaleSelect<ExtArgs> | null
87536
89798
  /**
87537
89799
  * Choose, which related nodes to fetch as well
87538
89800
  */
87539
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89801
+ include?: ShopifySaleInclude<ExtArgs> | null
87540
89802
  /**
87541
- * The data needed to create a CampaignToShopifyProduct.
89803
+ * The data needed to create a ShopifySale.
87542
89804
  */
87543
- data: XOR<CampaignToShopifyProductCreateInput, CampaignToShopifyProductUncheckedCreateInput>
89805
+ data: XOR<ShopifySaleCreateInput, ShopifySaleUncheckedCreateInput>
87544
89806
  }
87545
89807
 
87546
89808
  /**
87547
- * CampaignToShopifyProduct createMany
89809
+ * ShopifySale createMany
87548
89810
  */
87549
- export type CampaignToShopifyProductCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89811
+ export type ShopifySaleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87550
89812
  /**
87551
- * The data used to create many CampaignToShopifyProducts.
89813
+ * The data used to create many ShopifySales.
87552
89814
  */
87553
- data: CampaignToShopifyProductCreateManyInput | CampaignToShopifyProductCreateManyInput[]
89815
+ data: ShopifySaleCreateManyInput | ShopifySaleCreateManyInput[]
87554
89816
  skipDuplicates?: boolean
87555
89817
  }
87556
89818
 
87557
89819
  /**
87558
- * CampaignToShopifyProduct createManyAndReturn
89820
+ * ShopifySale createManyAndReturn
87559
89821
  */
87560
- export type CampaignToShopifyProductCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89822
+ export type ShopifySaleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87561
89823
  /**
87562
- * Select specific fields to fetch from the CampaignToShopifyProduct
89824
+ * Select specific fields to fetch from the ShopifySale
87563
89825
  */
87564
- select?: CampaignToShopifyProductSelectCreateManyAndReturn<ExtArgs> | null
89826
+ select?: ShopifySaleSelectCreateManyAndReturn<ExtArgs> | null
87565
89827
  /**
87566
- * The data used to create many CampaignToShopifyProducts.
89828
+ * The data used to create many ShopifySales.
87567
89829
  */
87568
- data: CampaignToShopifyProductCreateManyInput | CampaignToShopifyProductCreateManyInput[]
89830
+ data: ShopifySaleCreateManyInput | ShopifySaleCreateManyInput[]
87569
89831
  skipDuplicates?: boolean
87570
89832
  /**
87571
89833
  * Choose, which related nodes to fetch as well
87572
89834
  */
87573
- include?: CampaignToShopifyProductIncludeCreateManyAndReturn<ExtArgs> | null
89835
+ include?: ShopifySaleIncludeCreateManyAndReturn<ExtArgs> | null
87574
89836
  }
87575
89837
 
87576
89838
  /**
87577
- * CampaignToShopifyProduct update
89839
+ * ShopifySale update
87578
89840
  */
87579
- export type CampaignToShopifyProductUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89841
+ export type ShopifySaleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87580
89842
  /**
87581
- * Select specific fields to fetch from the CampaignToShopifyProduct
89843
+ * Select specific fields to fetch from the ShopifySale
87582
89844
  */
87583
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89845
+ select?: ShopifySaleSelect<ExtArgs> | null
87584
89846
  /**
87585
89847
  * Choose, which related nodes to fetch as well
87586
89848
  */
87587
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89849
+ include?: ShopifySaleInclude<ExtArgs> | null
87588
89850
  /**
87589
- * The data needed to update a CampaignToShopifyProduct.
89851
+ * The data needed to update a ShopifySale.
87590
89852
  */
87591
- data: XOR<CampaignToShopifyProductUpdateInput, CampaignToShopifyProductUncheckedUpdateInput>
89853
+ data: XOR<ShopifySaleUpdateInput, ShopifySaleUncheckedUpdateInput>
87592
89854
  /**
87593
- * Choose, which CampaignToShopifyProduct to update.
89855
+ * Choose, which ShopifySale to update.
87594
89856
  */
87595
- where: CampaignToShopifyProductWhereUniqueInput
89857
+ where: ShopifySaleWhereUniqueInput
87596
89858
  }
87597
89859
 
87598
89860
  /**
87599
- * CampaignToShopifyProduct updateMany
89861
+ * ShopifySale updateMany
87600
89862
  */
87601
- export type CampaignToShopifyProductUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89863
+ export type ShopifySaleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87602
89864
  /**
87603
- * The data used to update CampaignToShopifyProducts.
89865
+ * The data used to update ShopifySales.
87604
89866
  */
87605
- data: XOR<CampaignToShopifyProductUpdateManyMutationInput, CampaignToShopifyProductUncheckedUpdateManyInput>
89867
+ data: XOR<ShopifySaleUpdateManyMutationInput, ShopifySaleUncheckedUpdateManyInput>
87606
89868
  /**
87607
- * Filter which CampaignToShopifyProducts to update
89869
+ * Filter which ShopifySales to update
87608
89870
  */
87609
- where?: CampaignToShopifyProductWhereInput
89871
+ where?: ShopifySaleWhereInput
87610
89872
  }
87611
89873
 
87612
89874
  /**
87613
- * CampaignToShopifyProduct upsert
89875
+ * ShopifySale upsert
87614
89876
  */
87615
- export type CampaignToShopifyProductUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89877
+ export type ShopifySaleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87616
89878
  /**
87617
- * Select specific fields to fetch from the CampaignToShopifyProduct
89879
+ * Select specific fields to fetch from the ShopifySale
87618
89880
  */
87619
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89881
+ select?: ShopifySaleSelect<ExtArgs> | null
87620
89882
  /**
87621
89883
  * Choose, which related nodes to fetch as well
87622
89884
  */
87623
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89885
+ include?: ShopifySaleInclude<ExtArgs> | null
87624
89886
  /**
87625
- * The filter to search for the CampaignToShopifyProduct to update in case it exists.
89887
+ * The filter to search for the ShopifySale to update in case it exists.
87626
89888
  */
87627
- where: CampaignToShopifyProductWhereUniqueInput
89889
+ where: ShopifySaleWhereUniqueInput
87628
89890
  /**
87629
- * In case the CampaignToShopifyProduct found by the `where` argument doesn't exist, create a new CampaignToShopifyProduct with this data.
89891
+ * In case the ShopifySale found by the `where` argument doesn't exist, create a new ShopifySale with this data.
87630
89892
  */
87631
- create: XOR<CampaignToShopifyProductCreateInput, CampaignToShopifyProductUncheckedCreateInput>
89893
+ create: XOR<ShopifySaleCreateInput, ShopifySaleUncheckedCreateInput>
87632
89894
  /**
87633
- * In case the CampaignToShopifyProduct was found with the provided `where` argument, update it with this data.
89895
+ * In case the ShopifySale was found with the provided `where` argument, update it with this data.
87634
89896
  */
87635
- update: XOR<CampaignToShopifyProductUpdateInput, CampaignToShopifyProductUncheckedUpdateInput>
89897
+ update: XOR<ShopifySaleUpdateInput, ShopifySaleUncheckedUpdateInput>
87636
89898
  }
87637
89899
 
87638
89900
  /**
87639
- * CampaignToShopifyProduct delete
89901
+ * ShopifySale delete
87640
89902
  */
87641
- export type CampaignToShopifyProductDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89903
+ export type ShopifySaleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87642
89904
  /**
87643
- * Select specific fields to fetch from the CampaignToShopifyProduct
89905
+ * Select specific fields to fetch from the ShopifySale
87644
89906
  */
87645
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89907
+ select?: ShopifySaleSelect<ExtArgs> | null
87646
89908
  /**
87647
89909
  * Choose, which related nodes to fetch as well
87648
89910
  */
87649
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89911
+ include?: ShopifySaleInclude<ExtArgs> | null
87650
89912
  /**
87651
- * Filter which CampaignToShopifyProduct to delete.
89913
+ * Filter which ShopifySale to delete.
87652
89914
  */
87653
- where: CampaignToShopifyProductWhereUniqueInput
89915
+ where: ShopifySaleWhereUniqueInput
87654
89916
  }
87655
89917
 
87656
89918
  /**
87657
- * CampaignToShopifyProduct deleteMany
89919
+ * ShopifySale deleteMany
87658
89920
  */
87659
- export type CampaignToShopifyProductDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89921
+ export type ShopifySaleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87660
89922
  /**
87661
- * Filter which CampaignToShopifyProducts to delete
89923
+ * Filter which ShopifySales to delete
87662
89924
  */
87663
- where?: CampaignToShopifyProductWhereInput
89925
+ where?: ShopifySaleWhereInput
87664
89926
  }
87665
89927
 
87666
89928
  /**
87667
- * CampaignToShopifyProduct without action
89929
+ * ShopifySale without action
87668
89930
  */
87669
- export type CampaignToShopifyProductDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
89931
+ export type ShopifySaleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
87670
89932
  /**
87671
- * Select specific fields to fetch from the CampaignToShopifyProduct
89933
+ * Select specific fields to fetch from the ShopifySale
87672
89934
  */
87673
- select?: CampaignToShopifyProductSelect<ExtArgs> | null
89935
+ select?: ShopifySaleSelect<ExtArgs> | null
87674
89936
  /**
87675
89937
  * Choose, which related nodes to fetch as well
87676
89938
  */
87677
- include?: CampaignToShopifyProductInclude<ExtArgs> | null
89939
+ include?: ShopifySaleInclude<ExtArgs> | null
87678
89940
  }
87679
89941
 
87680
89942
 
@@ -88640,6 +90902,7 @@ export namespace Prisma {
88640
90902
 
88641
90903
  export const ShareASaleEventScalarFieldEnum: {
88642
90904
  id: 'id',
90905
+ transactionId: 'transactionId',
88643
90906
  created: 'created',
88644
90907
  saleAmount: 'saleAmount',
88645
90908
  commission: 'commission',
@@ -88769,6 +91032,27 @@ export namespace Prisma {
88769
91032
  export type CampaignToShopifyProductScalarFieldEnum = (typeof CampaignToShopifyProductScalarFieldEnum)[keyof typeof CampaignToShopifyProductScalarFieldEnum]
88770
91033
 
88771
91034
 
91035
+ export const ShopifyDiscountCodeScalarFieldEnum: {
91036
+ id: 'id',
91037
+ code: 'code',
91038
+ discount: 'discount',
91039
+ shopifyPriceRuleId: 'shopifyPriceRuleId',
91040
+ optInId: 'optInId'
91041
+ };
91042
+
91043
+ export type ShopifyDiscountCodeScalarFieldEnum = (typeof ShopifyDiscountCodeScalarFieldEnum)[keyof typeof ShopifyDiscountCodeScalarFieldEnum]
91044
+
91045
+
91046
+ export const ShopifySaleScalarFieldEnum: {
91047
+ id: 'id',
91048
+ amount: 'amount',
91049
+ metaData: 'metaData',
91050
+ discountCodeId: 'discountCodeId'
91051
+ };
91052
+
91053
+ export type ShopifySaleScalarFieldEnum = (typeof ShopifySaleScalarFieldEnum)[keyof typeof ShopifySaleScalarFieldEnum]
91054
+
91055
+
88772
91056
  export const SortOrder: {
88773
91057
  asc: 'asc',
88774
91058
  desc: 'desc'
@@ -89276,6 +91560,13 @@ export namespace Prisma {
89276
91560
  export type ImpactRadiusEventOrderByRelevanceFieldEnum = (typeof ImpactRadiusEventOrderByRelevanceFieldEnum)[keyof typeof ImpactRadiusEventOrderByRelevanceFieldEnum]
89277
91561
 
89278
91562
 
91563
+ export const ShareASaleEventOrderByRelevanceFieldEnum: {
91564
+ transactionId: 'transactionId'
91565
+ };
91566
+
91567
+ export type ShareASaleEventOrderByRelevanceFieldEnum = (typeof ShareASaleEventOrderByRelevanceFieldEnum)[keyof typeof ShareASaleEventOrderByRelevanceFieldEnum]
91568
+
91569
+
89279
91570
  export const CreatorSearchFilterOrderByRelevanceFieldEnum: {
89280
91571
  title: 'title'
89281
91572
  };
@@ -89325,6 +91616,14 @@ export namespace Prisma {
89325
91616
  export type ShopifyProductVariationOrderByRelevanceFieldEnum = (typeof ShopifyProductVariationOrderByRelevanceFieldEnum)[keyof typeof ShopifyProductVariationOrderByRelevanceFieldEnum]
89326
91617
 
89327
91618
 
91619
+ export const ShopifyDiscountCodeOrderByRelevanceFieldEnum: {
91620
+ code: 'code',
91621
+ shopifyPriceRuleId: 'shopifyPriceRuleId'
91622
+ };
91623
+
91624
+ export type ShopifyDiscountCodeOrderByRelevanceFieldEnum = (typeof ShopifyDiscountCodeOrderByRelevanceFieldEnum)[keyof typeof ShopifyDiscountCodeOrderByRelevanceFieldEnum]
91625
+
91626
+
89328
91627
  /**
89329
91628
  * Field references
89330
91629
  */
@@ -89428,6 +91727,20 @@ export namespace Prisma {
89428
91727
 
89429
91728
 
89430
91729
 
91730
+ /**
91731
+ * Reference to a field of type 'Decimal'
91732
+ */
91733
+ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'>
91734
+
91735
+
91736
+
91737
+ /**
91738
+ * Reference to a field of type 'Decimal[]'
91739
+ */
91740
+ export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'>
91741
+
91742
+
91743
+
89431
91744
  /**
89432
91745
  * Reference to a field of type 'ShopifyStoreSyncStatus'
89433
91746
  */
@@ -92497,6 +94810,7 @@ export namespace Prisma {
92497
94810
  ExternalAffiliateClick?: ExternalAffiliateClickListRelationFilter
92498
94811
  ImpactRadiusEvent?: ImpactRadiusEventListRelationFilter
92499
94812
  ShareASaleEvents?: ShareASaleEventListRelationFilter
94813
+ ShopifyDiscountCodes?: ShopifyDiscountCodeListRelationFilter
92500
94814
  }
92501
94815
 
92502
94816
  export type OptInOrderByWithRelationAndSearchRelevanceInput = {
@@ -92531,6 +94845,7 @@ export namespace Prisma {
92531
94845
  ExternalAffiliateClick?: ExternalAffiliateClickOrderByRelationAggregateInput
92532
94846
  ImpactRadiusEvent?: ImpactRadiusEventOrderByRelationAggregateInput
92533
94847
  ShareASaleEvents?: ShareASaleEventOrderByRelationAggregateInput
94848
+ ShopifyDiscountCodes?: ShopifyDiscountCodeOrderByRelationAggregateInput
92534
94849
  _relevance?: OptInOrderByRelevanceInput
92535
94850
  }
92536
94851
 
@@ -92569,6 +94884,7 @@ export namespace Prisma {
92569
94884
  ExternalAffiliateClick?: ExternalAffiliateClickListRelationFilter
92570
94885
  ImpactRadiusEvent?: ImpactRadiusEventListRelationFilter
92571
94886
  ShareASaleEvents?: ShareASaleEventListRelationFilter
94887
+ ShopifyDiscountCodes?: ShopifyDiscountCodeListRelationFilter
92572
94888
  }, "id">
92573
94889
 
92574
94890
  export type OptInOrderByWithAggregationInput = {
@@ -94765,9 +97081,10 @@ export namespace Prisma {
94765
97081
  OR?: ShareASaleEventWhereInput[]
94766
97082
  NOT?: ShareASaleEventWhereInput | ShareASaleEventWhereInput[]
94767
97083
  id?: IntFilter<"ShareASaleEvent"> | number
97084
+ transactionId?: StringNullableFilter<"ShareASaleEvent"> | string | null
94768
97085
  created?: DateTimeFilter<"ShareASaleEvent"> | Date | string
94769
- saleAmount?: FloatNullableFilter<"ShareASaleEvent"> | number | null
94770
- commission?: FloatNullableFilter<"ShareASaleEvent"> | number | null
97086
+ saleAmount?: DecimalNullableFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
97087
+ commission?: DecimalNullableFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
94771
97088
  metaData?: JsonFilter<"ShareASaleEvent">
94772
97089
  optInId?: IntNullableFilter<"ShareASaleEvent"> | number | null
94773
97090
  optIn?: XOR<OptInNullableRelationFilter, OptInWhereInput> | null
@@ -94775,29 +97092,33 @@ export namespace Prisma {
94775
97092
 
94776
97093
  export type ShareASaleEventOrderByWithRelationAndSearchRelevanceInput = {
94777
97094
  id?: SortOrder
97095
+ transactionId?: SortOrderInput | SortOrder
94778
97096
  created?: SortOrder
94779
97097
  saleAmount?: SortOrderInput | SortOrder
94780
97098
  commission?: SortOrderInput | SortOrder
94781
97099
  metaData?: SortOrder
94782
97100
  optInId?: SortOrderInput | SortOrder
94783
97101
  optIn?: OptInOrderByWithRelationAndSearchRelevanceInput
97102
+ _relevance?: ShareASaleEventOrderByRelevanceInput
94784
97103
  }
94785
97104
 
94786
97105
  export type ShareASaleEventWhereUniqueInput = Prisma.AtLeast<{
94787
97106
  id?: number
97107
+ transactionId?: string
94788
97108
  AND?: ShareASaleEventWhereInput | ShareASaleEventWhereInput[]
94789
97109
  OR?: ShareASaleEventWhereInput[]
94790
97110
  NOT?: ShareASaleEventWhereInput | ShareASaleEventWhereInput[]
94791
97111
  created?: DateTimeFilter<"ShareASaleEvent"> | Date | string
94792
- saleAmount?: FloatNullableFilter<"ShareASaleEvent"> | number | null
94793
- commission?: FloatNullableFilter<"ShareASaleEvent"> | number | null
97112
+ saleAmount?: DecimalNullableFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
97113
+ commission?: DecimalNullableFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
94794
97114
  metaData?: JsonFilter<"ShareASaleEvent">
94795
97115
  optInId?: IntNullableFilter<"ShareASaleEvent"> | number | null
94796
97116
  optIn?: XOR<OptInNullableRelationFilter, OptInWhereInput> | null
94797
- }, "id">
97117
+ }, "id" | "transactionId">
94798
97118
 
94799
97119
  export type ShareASaleEventOrderByWithAggregationInput = {
94800
97120
  id?: SortOrder
97121
+ transactionId?: SortOrderInput | SortOrder
94801
97122
  created?: SortOrder
94802
97123
  saleAmount?: SortOrderInput | SortOrder
94803
97124
  commission?: SortOrderInput | SortOrder
@@ -94815,9 +97136,10 @@ export namespace Prisma {
94815
97136
  OR?: ShareASaleEventScalarWhereWithAggregatesInput[]
94816
97137
  NOT?: ShareASaleEventScalarWhereWithAggregatesInput | ShareASaleEventScalarWhereWithAggregatesInput[]
94817
97138
  id?: IntWithAggregatesFilter<"ShareASaleEvent"> | number
97139
+ transactionId?: StringNullableWithAggregatesFilter<"ShareASaleEvent"> | string | null
94818
97140
  created?: DateTimeWithAggregatesFilter<"ShareASaleEvent"> | Date | string
94819
- saleAmount?: FloatNullableWithAggregatesFilter<"ShareASaleEvent"> | number | null
94820
- commission?: FloatNullableWithAggregatesFilter<"ShareASaleEvent"> | number | null
97141
+ saleAmount?: DecimalNullableWithAggregatesFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
97142
+ commission?: DecimalNullableWithAggregatesFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
94821
97143
  metaData?: JsonWithAggregatesFilter<"ShareASaleEvent">
94822
97144
  optInId?: IntNullableWithAggregatesFilter<"ShareASaleEvent"> | number | null
94823
97145
  }
@@ -95493,6 +97815,119 @@ export namespace Prisma {
95493
97815
  shopifyProductId?: IntWithAggregatesFilter<"CampaignToShopifyProduct"> | number
95494
97816
  }
95495
97817
 
97818
+ export type ShopifyDiscountCodeWhereInput = {
97819
+ AND?: ShopifyDiscountCodeWhereInput | ShopifyDiscountCodeWhereInput[]
97820
+ OR?: ShopifyDiscountCodeWhereInput[]
97821
+ NOT?: ShopifyDiscountCodeWhereInput | ShopifyDiscountCodeWhereInput[]
97822
+ id?: IntFilter<"ShopifyDiscountCode"> | number
97823
+ code?: StringFilter<"ShopifyDiscountCode"> | string
97824
+ discount?: FloatFilter<"ShopifyDiscountCode"> | number
97825
+ shopifyPriceRuleId?: StringNullableFilter<"ShopifyDiscountCode"> | string | null
97826
+ optInId?: IntFilter<"ShopifyDiscountCode"> | number
97827
+ optIn?: XOR<OptInRelationFilter, OptInWhereInput>
97828
+ shopifySales?: ShopifySaleListRelationFilter
97829
+ }
97830
+
97831
+ export type ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput = {
97832
+ id?: SortOrder
97833
+ code?: SortOrder
97834
+ discount?: SortOrder
97835
+ shopifyPriceRuleId?: SortOrderInput | SortOrder
97836
+ optInId?: SortOrder
97837
+ optIn?: OptInOrderByWithRelationAndSearchRelevanceInput
97838
+ shopifySales?: ShopifySaleOrderByRelationAggregateInput
97839
+ _relevance?: ShopifyDiscountCodeOrderByRelevanceInput
97840
+ }
97841
+
97842
+ export type ShopifyDiscountCodeWhereUniqueInput = Prisma.AtLeast<{
97843
+ id?: number
97844
+ AND?: ShopifyDiscountCodeWhereInput | ShopifyDiscountCodeWhereInput[]
97845
+ OR?: ShopifyDiscountCodeWhereInput[]
97846
+ NOT?: ShopifyDiscountCodeWhereInput | ShopifyDiscountCodeWhereInput[]
97847
+ code?: StringFilter<"ShopifyDiscountCode"> | string
97848
+ discount?: FloatFilter<"ShopifyDiscountCode"> | number
97849
+ shopifyPriceRuleId?: StringNullableFilter<"ShopifyDiscountCode"> | string | null
97850
+ optInId?: IntFilter<"ShopifyDiscountCode"> | number
97851
+ optIn?: XOR<OptInRelationFilter, OptInWhereInput>
97852
+ shopifySales?: ShopifySaleListRelationFilter
97853
+ }, "id">
97854
+
97855
+ export type ShopifyDiscountCodeOrderByWithAggregationInput = {
97856
+ id?: SortOrder
97857
+ code?: SortOrder
97858
+ discount?: SortOrder
97859
+ shopifyPriceRuleId?: SortOrderInput | SortOrder
97860
+ optInId?: SortOrder
97861
+ _count?: ShopifyDiscountCodeCountOrderByAggregateInput
97862
+ _avg?: ShopifyDiscountCodeAvgOrderByAggregateInput
97863
+ _max?: ShopifyDiscountCodeMaxOrderByAggregateInput
97864
+ _min?: ShopifyDiscountCodeMinOrderByAggregateInput
97865
+ _sum?: ShopifyDiscountCodeSumOrderByAggregateInput
97866
+ }
97867
+
97868
+ export type ShopifyDiscountCodeScalarWhereWithAggregatesInput = {
97869
+ AND?: ShopifyDiscountCodeScalarWhereWithAggregatesInput | ShopifyDiscountCodeScalarWhereWithAggregatesInput[]
97870
+ OR?: ShopifyDiscountCodeScalarWhereWithAggregatesInput[]
97871
+ NOT?: ShopifyDiscountCodeScalarWhereWithAggregatesInput | ShopifyDiscountCodeScalarWhereWithAggregatesInput[]
97872
+ id?: IntWithAggregatesFilter<"ShopifyDiscountCode"> | number
97873
+ code?: StringWithAggregatesFilter<"ShopifyDiscountCode"> | string
97874
+ discount?: FloatWithAggregatesFilter<"ShopifyDiscountCode"> | number
97875
+ shopifyPriceRuleId?: StringNullableWithAggregatesFilter<"ShopifyDiscountCode"> | string | null
97876
+ optInId?: IntWithAggregatesFilter<"ShopifyDiscountCode"> | number
97877
+ }
97878
+
97879
+ export type ShopifySaleWhereInput = {
97880
+ AND?: ShopifySaleWhereInput | ShopifySaleWhereInput[]
97881
+ OR?: ShopifySaleWhereInput[]
97882
+ NOT?: ShopifySaleWhereInput | ShopifySaleWhereInput[]
97883
+ id?: IntFilter<"ShopifySale"> | number
97884
+ amount?: FloatFilter<"ShopifySale"> | number
97885
+ metaData?: JsonNullableFilter<"ShopifySale">
97886
+ discountCodeId?: IntFilter<"ShopifySale"> | number
97887
+ discountCode?: XOR<ShopifyDiscountCodeRelationFilter, ShopifyDiscountCodeWhereInput>
97888
+ }
97889
+
97890
+ export type ShopifySaleOrderByWithRelationAndSearchRelevanceInput = {
97891
+ id?: SortOrder
97892
+ amount?: SortOrder
97893
+ metaData?: SortOrderInput | SortOrder
97894
+ discountCodeId?: SortOrder
97895
+ discountCode?: ShopifyDiscountCodeOrderByWithRelationAndSearchRelevanceInput
97896
+ }
97897
+
97898
+ export type ShopifySaleWhereUniqueInput = Prisma.AtLeast<{
97899
+ id?: number
97900
+ AND?: ShopifySaleWhereInput | ShopifySaleWhereInput[]
97901
+ OR?: ShopifySaleWhereInput[]
97902
+ NOT?: ShopifySaleWhereInput | ShopifySaleWhereInput[]
97903
+ amount?: FloatFilter<"ShopifySale"> | number
97904
+ metaData?: JsonNullableFilter<"ShopifySale">
97905
+ discountCodeId?: IntFilter<"ShopifySale"> | number
97906
+ discountCode?: XOR<ShopifyDiscountCodeRelationFilter, ShopifyDiscountCodeWhereInput>
97907
+ }, "id">
97908
+
97909
+ export type ShopifySaleOrderByWithAggregationInput = {
97910
+ id?: SortOrder
97911
+ amount?: SortOrder
97912
+ metaData?: SortOrderInput | SortOrder
97913
+ discountCodeId?: SortOrder
97914
+ _count?: ShopifySaleCountOrderByAggregateInput
97915
+ _avg?: ShopifySaleAvgOrderByAggregateInput
97916
+ _max?: ShopifySaleMaxOrderByAggregateInput
97917
+ _min?: ShopifySaleMinOrderByAggregateInput
97918
+ _sum?: ShopifySaleSumOrderByAggregateInput
97919
+ }
97920
+
97921
+ export type ShopifySaleScalarWhereWithAggregatesInput = {
97922
+ AND?: ShopifySaleScalarWhereWithAggregatesInput | ShopifySaleScalarWhereWithAggregatesInput[]
97923
+ OR?: ShopifySaleScalarWhereWithAggregatesInput[]
97924
+ NOT?: ShopifySaleScalarWhereWithAggregatesInput | ShopifySaleScalarWhereWithAggregatesInput[]
97925
+ id?: IntWithAggregatesFilter<"ShopifySale"> | number
97926
+ amount?: FloatWithAggregatesFilter<"ShopifySale"> | number
97927
+ metaData?: JsonNullableWithAggregatesFilter<"ShopifySale">
97928
+ discountCodeId?: IntWithAggregatesFilter<"ShopifySale"> | number
97929
+ }
97930
+
95496
97931
  export type UserCreateInput = {
95497
97932
  role: string
95498
97933
  email?: string | null
@@ -98687,6 +101122,7 @@ export namespace Prisma {
98687
101122
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
98688
101123
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
98689
101124
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
101125
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
98690
101126
  }
98691
101127
 
98692
101128
  export type OptInUncheckedCreateInput = {
@@ -98718,6 +101154,7 @@ export namespace Prisma {
98718
101154
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
98719
101155
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
98720
101156
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
101157
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
98721
101158
  }
98722
101159
 
98723
101160
  export type OptInUpdateInput = {
@@ -98748,6 +101185,7 @@ export namespace Prisma {
98748
101185
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
98749
101186
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
98750
101187
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
101188
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
98751
101189
  }
98752
101190
 
98753
101191
  export type OptInUncheckedUpdateInput = {
@@ -98779,6 +101217,7 @@ export namespace Prisma {
98779
101217
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
98780
101218
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
98781
101219
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
101220
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
98782
101221
  }
98783
101222
 
98784
101223
  export type OptInCreateManyInput = {
@@ -101005,60 +103444,67 @@ export namespace Prisma {
101005
103444
  }
101006
103445
 
101007
103446
  export type ShareASaleEventCreateInput = {
103447
+ transactionId?: string | null
101008
103448
  created?: Date | string
101009
- saleAmount?: number | null
101010
- commission?: number | null
103449
+ saleAmount?: Decimal | DecimalJsLike | number | string | null
103450
+ commission?: Decimal | DecimalJsLike | number | string | null
101011
103451
  metaData?: JsonNullValueInput | InputJsonValue
101012
103452
  optIn?: OptInCreateNestedOneWithoutShareASaleEventsInput
101013
103453
  }
101014
103454
 
101015
103455
  export type ShareASaleEventUncheckedCreateInput = {
101016
103456
  id?: number
103457
+ transactionId?: string | null
101017
103458
  created?: Date | string
101018
- saleAmount?: number | null
101019
- commission?: number | null
103459
+ saleAmount?: Decimal | DecimalJsLike | number | string | null
103460
+ commission?: Decimal | DecimalJsLike | number | string | null
101020
103461
  metaData?: JsonNullValueInput | InputJsonValue
101021
103462
  optInId?: number | null
101022
103463
  }
101023
103464
 
101024
103465
  export type ShareASaleEventUpdateInput = {
103466
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
101025
103467
  created?: DateTimeFieldUpdateOperationsInput | Date | string
101026
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
101027
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
103468
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
103469
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
101028
103470
  metaData?: JsonNullValueInput | InputJsonValue
101029
103471
  optIn?: OptInUpdateOneWithoutShareASaleEventsNestedInput
101030
103472
  }
101031
103473
 
101032
103474
  export type ShareASaleEventUncheckedUpdateInput = {
101033
103475
  id?: IntFieldUpdateOperationsInput | number
103476
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
101034
103477
  created?: DateTimeFieldUpdateOperationsInput | Date | string
101035
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
101036
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
103478
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
103479
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
101037
103480
  metaData?: JsonNullValueInput | InputJsonValue
101038
103481
  optInId?: NullableIntFieldUpdateOperationsInput | number | null
101039
103482
  }
101040
103483
 
101041
103484
  export type ShareASaleEventCreateManyInput = {
101042
103485
  id?: number
103486
+ transactionId?: string | null
101043
103487
  created?: Date | string
101044
- saleAmount?: number | null
101045
- commission?: number | null
103488
+ saleAmount?: Decimal | DecimalJsLike | number | string | null
103489
+ commission?: Decimal | DecimalJsLike | number | string | null
101046
103490
  metaData?: JsonNullValueInput | InputJsonValue
101047
103491
  optInId?: number | null
101048
103492
  }
101049
103493
 
101050
103494
  export type ShareASaleEventUpdateManyMutationInput = {
103495
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
101051
103496
  created?: DateTimeFieldUpdateOperationsInput | Date | string
101052
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
101053
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
103497
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
103498
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
101054
103499
  metaData?: JsonNullValueInput | InputJsonValue
101055
103500
  }
101056
103501
 
101057
103502
  export type ShareASaleEventUncheckedUpdateManyInput = {
101058
103503
  id?: IntFieldUpdateOperationsInput | number
103504
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
101059
103505
  created?: DateTimeFieldUpdateOperationsInput | Date | string
101060
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
101061
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
103506
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
103507
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
101062
103508
  metaData?: JsonNullValueInput | InputJsonValue
101063
103509
  optInId?: NullableIntFieldUpdateOperationsInput | number | null
101064
103510
  }
@@ -101677,6 +104123,107 @@ export namespace Prisma {
101677
104123
  shopifyProductId?: IntFieldUpdateOperationsInput | number
101678
104124
  }
101679
104125
 
104126
+ export type ShopifyDiscountCodeCreateInput = {
104127
+ code: string
104128
+ discount: number
104129
+ shopifyPriceRuleId?: string | null
104130
+ optIn: OptInCreateNestedOneWithoutShopifyDiscountCodesInput
104131
+ shopifySales?: ShopifySaleCreateNestedManyWithoutDiscountCodeInput
104132
+ }
104133
+
104134
+ export type ShopifyDiscountCodeUncheckedCreateInput = {
104135
+ id?: number
104136
+ code: string
104137
+ discount: number
104138
+ shopifyPriceRuleId?: string | null
104139
+ optInId: number
104140
+ shopifySales?: ShopifySaleUncheckedCreateNestedManyWithoutDiscountCodeInput
104141
+ }
104142
+
104143
+ export type ShopifyDiscountCodeUpdateInput = {
104144
+ code?: StringFieldUpdateOperationsInput | string
104145
+ discount?: FloatFieldUpdateOperationsInput | number
104146
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
104147
+ optIn?: OptInUpdateOneRequiredWithoutShopifyDiscountCodesNestedInput
104148
+ shopifySales?: ShopifySaleUpdateManyWithoutDiscountCodeNestedInput
104149
+ }
104150
+
104151
+ export type ShopifyDiscountCodeUncheckedUpdateInput = {
104152
+ id?: IntFieldUpdateOperationsInput | number
104153
+ code?: StringFieldUpdateOperationsInput | string
104154
+ discount?: FloatFieldUpdateOperationsInput | number
104155
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
104156
+ optInId?: IntFieldUpdateOperationsInput | number
104157
+ shopifySales?: ShopifySaleUncheckedUpdateManyWithoutDiscountCodeNestedInput
104158
+ }
104159
+
104160
+ export type ShopifyDiscountCodeCreateManyInput = {
104161
+ id?: number
104162
+ code: string
104163
+ discount: number
104164
+ shopifyPriceRuleId?: string | null
104165
+ optInId: number
104166
+ }
104167
+
104168
+ export type ShopifyDiscountCodeUpdateManyMutationInput = {
104169
+ code?: StringFieldUpdateOperationsInput | string
104170
+ discount?: FloatFieldUpdateOperationsInput | number
104171
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
104172
+ }
104173
+
104174
+ export type ShopifyDiscountCodeUncheckedUpdateManyInput = {
104175
+ id?: IntFieldUpdateOperationsInput | number
104176
+ code?: StringFieldUpdateOperationsInput | string
104177
+ discount?: FloatFieldUpdateOperationsInput | number
104178
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
104179
+ optInId?: IntFieldUpdateOperationsInput | number
104180
+ }
104181
+
104182
+ export type ShopifySaleCreateInput = {
104183
+ amount: number
104184
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104185
+ discountCode: ShopifyDiscountCodeCreateNestedOneWithoutShopifySalesInput
104186
+ }
104187
+
104188
+ export type ShopifySaleUncheckedCreateInput = {
104189
+ id?: number
104190
+ amount: number
104191
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104192
+ discountCodeId: number
104193
+ }
104194
+
104195
+ export type ShopifySaleUpdateInput = {
104196
+ amount?: FloatFieldUpdateOperationsInput | number
104197
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104198
+ discountCode?: ShopifyDiscountCodeUpdateOneRequiredWithoutShopifySalesNestedInput
104199
+ }
104200
+
104201
+ export type ShopifySaleUncheckedUpdateInput = {
104202
+ id?: IntFieldUpdateOperationsInput | number
104203
+ amount?: FloatFieldUpdateOperationsInput | number
104204
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104205
+ discountCodeId?: IntFieldUpdateOperationsInput | number
104206
+ }
104207
+
104208
+ export type ShopifySaleCreateManyInput = {
104209
+ id?: number
104210
+ amount: number
104211
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104212
+ discountCodeId: number
104213
+ }
104214
+
104215
+ export type ShopifySaleUpdateManyMutationInput = {
104216
+ amount?: FloatFieldUpdateOperationsInput | number
104217
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104218
+ }
104219
+
104220
+ export type ShopifySaleUncheckedUpdateManyInput = {
104221
+ id?: IntFieldUpdateOperationsInput | number
104222
+ amount?: FloatFieldUpdateOperationsInput | number
104223
+ metaData?: NullableJsonNullValueInput | InputJsonValue
104224
+ discountCodeId?: IntFieldUpdateOperationsInput | number
104225
+ }
104226
+
101680
104227
  export type IntFilter<$PrismaModel = never> = {
101681
104228
  equals?: number | IntFieldRefInput<$PrismaModel>
101682
104229
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -104517,6 +107064,12 @@ export namespace Prisma {
104517
107064
  none?: ShareASaleEventWhereInput
104518
107065
  }
104519
107066
 
107067
+ export type ShopifyDiscountCodeListRelationFilter = {
107068
+ every?: ShopifyDiscountCodeWhereInput
107069
+ some?: ShopifyDiscountCodeWhereInput
107070
+ none?: ShopifyDiscountCodeWhereInput
107071
+ }
107072
+
104520
107073
  export type TrolleyPaymentOrderByRelationAggregateInput = {
104521
107074
  _count?: SortOrder
104522
107075
  }
@@ -104529,6 +107082,10 @@ export namespace Prisma {
104529
107082
  _count?: SortOrder
104530
107083
  }
104531
107084
 
107085
+ export type ShopifyDiscountCodeOrderByRelationAggregateInput = {
107086
+ _count?: SortOrder
107087
+ }
107088
+
104532
107089
  export type OptInOrderByRelevanceInput = {
104533
107090
  fields: OptInOrderByRelevanceFieldEnum | OptInOrderByRelevanceFieldEnum[]
104534
107091
  sort: SortOrder
@@ -106208,8 +108765,26 @@ export namespace Prisma {
106208
108765
  optInId?: SortOrder
106209
108766
  }
106210
108767
 
108768
+ export type DecimalNullableFilter<$PrismaModel = never> = {
108769
+ equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
108770
+ in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
108771
+ notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
108772
+ lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108773
+ lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108774
+ gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108775
+ gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108776
+ not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
108777
+ }
108778
+
108779
+ export type ShareASaleEventOrderByRelevanceInput = {
108780
+ fields: ShareASaleEventOrderByRelevanceFieldEnum | ShareASaleEventOrderByRelevanceFieldEnum[]
108781
+ sort: SortOrder
108782
+ search: string
108783
+ }
108784
+
106211
108785
  export type ShareASaleEventCountOrderByAggregateInput = {
106212
108786
  id?: SortOrder
108787
+ transactionId?: SortOrder
106213
108788
  created?: SortOrder
106214
108789
  saleAmount?: SortOrder
106215
108790
  commission?: SortOrder
@@ -106226,6 +108801,7 @@ export namespace Prisma {
106226
108801
 
106227
108802
  export type ShareASaleEventMaxOrderByAggregateInput = {
106228
108803
  id?: SortOrder
108804
+ transactionId?: SortOrder
106229
108805
  created?: SortOrder
106230
108806
  saleAmount?: SortOrder
106231
108807
  commission?: SortOrder
@@ -106234,6 +108810,7 @@ export namespace Prisma {
106234
108810
 
106235
108811
  export type ShareASaleEventMinOrderByAggregateInput = {
106236
108812
  id?: SortOrder
108813
+ transactionId?: SortOrder
106237
108814
  created?: SortOrder
106238
108815
  saleAmount?: SortOrder
106239
108816
  commission?: SortOrder
@@ -106247,6 +108824,22 @@ export namespace Prisma {
106247
108824
  optInId?: SortOrder
106248
108825
  }
106249
108826
 
108827
+ export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
108828
+ equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
108829
+ in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
108830
+ notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
108831
+ lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108832
+ lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108833
+ gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108834
+ gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
108835
+ not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
108836
+ _count?: NestedIntNullableFilter<$PrismaModel>
108837
+ _avg?: NestedDecimalNullableFilter<$PrismaModel>
108838
+ _sum?: NestedDecimalNullableFilter<$PrismaModel>
108839
+ _min?: NestedDecimalNullableFilter<$PrismaModel>
108840
+ _max?: NestedDecimalNullableFilter<$PrismaModel>
108841
+ }
108842
+
106250
108843
  export type CreatorSearchFilterOrderByRelevanceInput = {
106251
108844
  fields: CreatorSearchFilterOrderByRelevanceFieldEnum | CreatorSearchFilterOrderByRelevanceFieldEnum[]
106252
108845
  sort: SortOrder
@@ -106737,6 +109330,94 @@ export namespace Prisma {
106737
109330
  shopifyProductId?: SortOrder
106738
109331
  }
106739
109332
 
109333
+ export type ShopifySaleListRelationFilter = {
109334
+ every?: ShopifySaleWhereInput
109335
+ some?: ShopifySaleWhereInput
109336
+ none?: ShopifySaleWhereInput
109337
+ }
109338
+
109339
+ export type ShopifySaleOrderByRelationAggregateInput = {
109340
+ _count?: SortOrder
109341
+ }
109342
+
109343
+ export type ShopifyDiscountCodeOrderByRelevanceInput = {
109344
+ fields: ShopifyDiscountCodeOrderByRelevanceFieldEnum | ShopifyDiscountCodeOrderByRelevanceFieldEnum[]
109345
+ sort: SortOrder
109346
+ search: string
109347
+ }
109348
+
109349
+ export type ShopifyDiscountCodeCountOrderByAggregateInput = {
109350
+ id?: SortOrder
109351
+ code?: SortOrder
109352
+ discount?: SortOrder
109353
+ shopifyPriceRuleId?: SortOrder
109354
+ optInId?: SortOrder
109355
+ }
109356
+
109357
+ export type ShopifyDiscountCodeAvgOrderByAggregateInput = {
109358
+ id?: SortOrder
109359
+ discount?: SortOrder
109360
+ optInId?: SortOrder
109361
+ }
109362
+
109363
+ export type ShopifyDiscountCodeMaxOrderByAggregateInput = {
109364
+ id?: SortOrder
109365
+ code?: SortOrder
109366
+ discount?: SortOrder
109367
+ shopifyPriceRuleId?: SortOrder
109368
+ optInId?: SortOrder
109369
+ }
109370
+
109371
+ export type ShopifyDiscountCodeMinOrderByAggregateInput = {
109372
+ id?: SortOrder
109373
+ code?: SortOrder
109374
+ discount?: SortOrder
109375
+ shopifyPriceRuleId?: SortOrder
109376
+ optInId?: SortOrder
109377
+ }
109378
+
109379
+ export type ShopifyDiscountCodeSumOrderByAggregateInput = {
109380
+ id?: SortOrder
109381
+ discount?: SortOrder
109382
+ optInId?: SortOrder
109383
+ }
109384
+
109385
+ export type ShopifyDiscountCodeRelationFilter = {
109386
+ is?: ShopifyDiscountCodeWhereInput
109387
+ isNot?: ShopifyDiscountCodeWhereInput
109388
+ }
109389
+
109390
+ export type ShopifySaleCountOrderByAggregateInput = {
109391
+ id?: SortOrder
109392
+ amount?: SortOrder
109393
+ metaData?: SortOrder
109394
+ discountCodeId?: SortOrder
109395
+ }
109396
+
109397
+ export type ShopifySaleAvgOrderByAggregateInput = {
109398
+ id?: SortOrder
109399
+ amount?: SortOrder
109400
+ discountCodeId?: SortOrder
109401
+ }
109402
+
109403
+ export type ShopifySaleMaxOrderByAggregateInput = {
109404
+ id?: SortOrder
109405
+ amount?: SortOrder
109406
+ discountCodeId?: SortOrder
109407
+ }
109408
+
109409
+ export type ShopifySaleMinOrderByAggregateInput = {
109410
+ id?: SortOrder
109411
+ amount?: SortOrder
109412
+ discountCodeId?: SortOrder
109413
+ }
109414
+
109415
+ export type ShopifySaleSumOrderByAggregateInput = {
109416
+ id?: SortOrder
109417
+ amount?: SortOrder
109418
+ discountCodeId?: SortOrder
109419
+ }
109420
+
106740
109421
  export type UserCreateNestedOneWithoutReferredUsersInput = {
106741
109422
  create?: XOR<UserCreateWithoutReferredUsersInput, UserUncheckedCreateWithoutReferredUsersInput>
106742
109423
  connectOrCreate?: UserCreateOrConnectWithoutReferredUsersInput
@@ -110730,6 +113411,13 @@ export namespace Prisma {
110730
113411
  connect?: ShareASaleEventWhereUniqueInput | ShareASaleEventWhereUniqueInput[]
110731
113412
  }
110732
113413
 
113414
+ export type ShopifyDiscountCodeCreateNestedManyWithoutOptInInput = {
113415
+ create?: XOR<ShopifyDiscountCodeCreateWithoutOptInInput, ShopifyDiscountCodeUncheckedCreateWithoutOptInInput> | ShopifyDiscountCodeCreateWithoutOptInInput[] | ShopifyDiscountCodeUncheckedCreateWithoutOptInInput[]
113416
+ connectOrCreate?: ShopifyDiscountCodeCreateOrConnectWithoutOptInInput | ShopifyDiscountCodeCreateOrConnectWithoutOptInInput[]
113417
+ createMany?: ShopifyDiscountCodeCreateManyOptInInputEnvelope
113418
+ connect?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113419
+ }
113420
+
110733
113421
  export type OptInVariableUncheckedCreateNestedManyWithoutOptInInput = {
110734
113422
  create?: XOR<OptInVariableCreateWithoutOptInInput, OptInVariableUncheckedCreateWithoutOptInInput> | OptInVariableCreateWithoutOptInInput[] | OptInVariableUncheckedCreateWithoutOptInInput[]
110735
113423
  connectOrCreate?: OptInVariableCreateOrConnectWithoutOptInInput | OptInVariableCreateOrConnectWithoutOptInInput[]
@@ -110799,6 +113487,13 @@ export namespace Prisma {
110799
113487
  connect?: ShareASaleEventWhereUniqueInput | ShareASaleEventWhereUniqueInput[]
110800
113488
  }
110801
113489
 
113490
+ export type ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput = {
113491
+ create?: XOR<ShopifyDiscountCodeCreateWithoutOptInInput, ShopifyDiscountCodeUncheckedCreateWithoutOptInInput> | ShopifyDiscountCodeCreateWithoutOptInInput[] | ShopifyDiscountCodeUncheckedCreateWithoutOptInInput[]
113492
+ connectOrCreate?: ShopifyDiscountCodeCreateOrConnectWithoutOptInInput | ShopifyDiscountCodeCreateOrConnectWithoutOptInInput[]
113493
+ createMany?: ShopifyDiscountCodeCreateManyOptInInputEnvelope
113494
+ connect?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113495
+ }
113496
+
110802
113497
  export type UserUpdateOneRequiredWithoutOptInsNestedInput = {
110803
113498
  create?: XOR<UserCreateWithoutOptInsInput, UserUncheckedCreateWithoutOptInsInput>
110804
113499
  connectOrCreate?: UserCreateOrConnectWithoutOptInsInput
@@ -110961,6 +113656,20 @@ export namespace Prisma {
110961
113656
  deleteMany?: ShareASaleEventScalarWhereInput | ShareASaleEventScalarWhereInput[]
110962
113657
  }
110963
113658
 
113659
+ export type ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput = {
113660
+ create?: XOR<ShopifyDiscountCodeCreateWithoutOptInInput, ShopifyDiscountCodeUncheckedCreateWithoutOptInInput> | ShopifyDiscountCodeCreateWithoutOptInInput[] | ShopifyDiscountCodeUncheckedCreateWithoutOptInInput[]
113661
+ connectOrCreate?: ShopifyDiscountCodeCreateOrConnectWithoutOptInInput | ShopifyDiscountCodeCreateOrConnectWithoutOptInInput[]
113662
+ upsert?: ShopifyDiscountCodeUpsertWithWhereUniqueWithoutOptInInput | ShopifyDiscountCodeUpsertWithWhereUniqueWithoutOptInInput[]
113663
+ createMany?: ShopifyDiscountCodeCreateManyOptInInputEnvelope
113664
+ set?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113665
+ disconnect?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113666
+ delete?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113667
+ connect?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113668
+ update?: ShopifyDiscountCodeUpdateWithWhereUniqueWithoutOptInInput | ShopifyDiscountCodeUpdateWithWhereUniqueWithoutOptInInput[]
113669
+ updateMany?: ShopifyDiscountCodeUpdateManyWithWhereWithoutOptInInput | ShopifyDiscountCodeUpdateManyWithWhereWithoutOptInInput[]
113670
+ deleteMany?: ShopifyDiscountCodeScalarWhereInput | ShopifyDiscountCodeScalarWhereInput[]
113671
+ }
113672
+
110964
113673
  export type OptInVariableUncheckedUpdateManyWithoutOptInNestedInput = {
110965
113674
  create?: XOR<OptInVariableCreateWithoutOptInInput, OptInVariableUncheckedCreateWithoutOptInInput> | OptInVariableCreateWithoutOptInInput[] | OptInVariableUncheckedCreateWithoutOptInInput[]
110966
113675
  connectOrCreate?: OptInVariableCreateOrConnectWithoutOptInInput | OptInVariableCreateOrConnectWithoutOptInInput[]
@@ -111097,6 +113806,20 @@ export namespace Prisma {
111097
113806
  deleteMany?: ShareASaleEventScalarWhereInput | ShareASaleEventScalarWhereInput[]
111098
113807
  }
111099
113808
 
113809
+ export type ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput = {
113810
+ create?: XOR<ShopifyDiscountCodeCreateWithoutOptInInput, ShopifyDiscountCodeUncheckedCreateWithoutOptInInput> | ShopifyDiscountCodeCreateWithoutOptInInput[] | ShopifyDiscountCodeUncheckedCreateWithoutOptInInput[]
113811
+ connectOrCreate?: ShopifyDiscountCodeCreateOrConnectWithoutOptInInput | ShopifyDiscountCodeCreateOrConnectWithoutOptInInput[]
113812
+ upsert?: ShopifyDiscountCodeUpsertWithWhereUniqueWithoutOptInInput | ShopifyDiscountCodeUpsertWithWhereUniqueWithoutOptInInput[]
113813
+ createMany?: ShopifyDiscountCodeCreateManyOptInInputEnvelope
113814
+ set?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113815
+ disconnect?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113816
+ delete?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113817
+ connect?: ShopifyDiscountCodeWhereUniqueInput | ShopifyDiscountCodeWhereUniqueInput[]
113818
+ update?: ShopifyDiscountCodeUpdateWithWhereUniqueWithoutOptInInput | ShopifyDiscountCodeUpdateWithWhereUniqueWithoutOptInInput[]
113819
+ updateMany?: ShopifyDiscountCodeUpdateManyWithWhereWithoutOptInInput | ShopifyDiscountCodeUpdateManyWithWhereWithoutOptInInput[]
113820
+ deleteMany?: ShopifyDiscountCodeScalarWhereInput | ShopifyDiscountCodeScalarWhereInput[]
113821
+ }
113822
+
111100
113823
  export type OptInCreateNestedOneWithoutTrolleyPaymentsInput = {
111101
113824
  create?: XOR<OptInCreateWithoutTrolleyPaymentsInput, OptInUncheckedCreateWithoutTrolleyPaymentsInput>
111102
113825
  connectOrCreate?: OptInCreateOrConnectWithoutTrolleyPaymentsInput
@@ -112413,6 +115136,14 @@ export namespace Prisma {
112413
115136
  connect?: OptInWhereUniqueInput
112414
115137
  }
112415
115138
 
115139
+ export type NullableDecimalFieldUpdateOperationsInput = {
115140
+ set?: Decimal | DecimalJsLike | number | string | null
115141
+ increment?: Decimal | DecimalJsLike | number | string
115142
+ decrement?: Decimal | DecimalJsLike | number | string
115143
+ multiply?: Decimal | DecimalJsLike | number | string
115144
+ divide?: Decimal | DecimalJsLike | number | string
115145
+ }
115146
+
112416
115147
  export type OptInUpdateOneWithoutShareASaleEventsNestedInput = {
112417
115148
  create?: XOR<OptInCreateWithoutShareASaleEventsInput, OptInUncheckedCreateWithoutShareASaleEventsInput>
112418
115149
  connectOrCreate?: OptInCreateOrConnectWithoutShareASaleEventsInput
@@ -113017,6 +115748,76 @@ export namespace Prisma {
113017
115748
  update?: XOR<XOR<ShopifyProductUpdateToOneWithWhereWithoutCampaignToShopifyProductsInput, ShopifyProductUpdateWithoutCampaignToShopifyProductsInput>, ShopifyProductUncheckedUpdateWithoutCampaignToShopifyProductsInput>
113018
115749
  }
113019
115750
 
115751
+ export type OptInCreateNestedOneWithoutShopifyDiscountCodesInput = {
115752
+ create?: XOR<OptInCreateWithoutShopifyDiscountCodesInput, OptInUncheckedCreateWithoutShopifyDiscountCodesInput>
115753
+ connectOrCreate?: OptInCreateOrConnectWithoutShopifyDiscountCodesInput
115754
+ connect?: OptInWhereUniqueInput
115755
+ }
115756
+
115757
+ export type ShopifySaleCreateNestedManyWithoutDiscountCodeInput = {
115758
+ create?: XOR<ShopifySaleCreateWithoutDiscountCodeInput, ShopifySaleUncheckedCreateWithoutDiscountCodeInput> | ShopifySaleCreateWithoutDiscountCodeInput[] | ShopifySaleUncheckedCreateWithoutDiscountCodeInput[]
115759
+ connectOrCreate?: ShopifySaleCreateOrConnectWithoutDiscountCodeInput | ShopifySaleCreateOrConnectWithoutDiscountCodeInput[]
115760
+ createMany?: ShopifySaleCreateManyDiscountCodeInputEnvelope
115761
+ connect?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115762
+ }
115763
+
115764
+ export type ShopifySaleUncheckedCreateNestedManyWithoutDiscountCodeInput = {
115765
+ create?: XOR<ShopifySaleCreateWithoutDiscountCodeInput, ShopifySaleUncheckedCreateWithoutDiscountCodeInput> | ShopifySaleCreateWithoutDiscountCodeInput[] | ShopifySaleUncheckedCreateWithoutDiscountCodeInput[]
115766
+ connectOrCreate?: ShopifySaleCreateOrConnectWithoutDiscountCodeInput | ShopifySaleCreateOrConnectWithoutDiscountCodeInput[]
115767
+ createMany?: ShopifySaleCreateManyDiscountCodeInputEnvelope
115768
+ connect?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115769
+ }
115770
+
115771
+ export type OptInUpdateOneRequiredWithoutShopifyDiscountCodesNestedInput = {
115772
+ create?: XOR<OptInCreateWithoutShopifyDiscountCodesInput, OptInUncheckedCreateWithoutShopifyDiscountCodesInput>
115773
+ connectOrCreate?: OptInCreateOrConnectWithoutShopifyDiscountCodesInput
115774
+ upsert?: OptInUpsertWithoutShopifyDiscountCodesInput
115775
+ connect?: OptInWhereUniqueInput
115776
+ update?: XOR<XOR<OptInUpdateToOneWithWhereWithoutShopifyDiscountCodesInput, OptInUpdateWithoutShopifyDiscountCodesInput>, OptInUncheckedUpdateWithoutShopifyDiscountCodesInput>
115777
+ }
115778
+
115779
+ export type ShopifySaleUpdateManyWithoutDiscountCodeNestedInput = {
115780
+ create?: XOR<ShopifySaleCreateWithoutDiscountCodeInput, ShopifySaleUncheckedCreateWithoutDiscountCodeInput> | ShopifySaleCreateWithoutDiscountCodeInput[] | ShopifySaleUncheckedCreateWithoutDiscountCodeInput[]
115781
+ connectOrCreate?: ShopifySaleCreateOrConnectWithoutDiscountCodeInput | ShopifySaleCreateOrConnectWithoutDiscountCodeInput[]
115782
+ upsert?: ShopifySaleUpsertWithWhereUniqueWithoutDiscountCodeInput | ShopifySaleUpsertWithWhereUniqueWithoutDiscountCodeInput[]
115783
+ createMany?: ShopifySaleCreateManyDiscountCodeInputEnvelope
115784
+ set?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115785
+ disconnect?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115786
+ delete?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115787
+ connect?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115788
+ update?: ShopifySaleUpdateWithWhereUniqueWithoutDiscountCodeInput | ShopifySaleUpdateWithWhereUniqueWithoutDiscountCodeInput[]
115789
+ updateMany?: ShopifySaleUpdateManyWithWhereWithoutDiscountCodeInput | ShopifySaleUpdateManyWithWhereWithoutDiscountCodeInput[]
115790
+ deleteMany?: ShopifySaleScalarWhereInput | ShopifySaleScalarWhereInput[]
115791
+ }
115792
+
115793
+ export type ShopifySaleUncheckedUpdateManyWithoutDiscountCodeNestedInput = {
115794
+ create?: XOR<ShopifySaleCreateWithoutDiscountCodeInput, ShopifySaleUncheckedCreateWithoutDiscountCodeInput> | ShopifySaleCreateWithoutDiscountCodeInput[] | ShopifySaleUncheckedCreateWithoutDiscountCodeInput[]
115795
+ connectOrCreate?: ShopifySaleCreateOrConnectWithoutDiscountCodeInput | ShopifySaleCreateOrConnectWithoutDiscountCodeInput[]
115796
+ upsert?: ShopifySaleUpsertWithWhereUniqueWithoutDiscountCodeInput | ShopifySaleUpsertWithWhereUniqueWithoutDiscountCodeInput[]
115797
+ createMany?: ShopifySaleCreateManyDiscountCodeInputEnvelope
115798
+ set?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115799
+ disconnect?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115800
+ delete?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115801
+ connect?: ShopifySaleWhereUniqueInput | ShopifySaleWhereUniqueInput[]
115802
+ update?: ShopifySaleUpdateWithWhereUniqueWithoutDiscountCodeInput | ShopifySaleUpdateWithWhereUniqueWithoutDiscountCodeInput[]
115803
+ updateMany?: ShopifySaleUpdateManyWithWhereWithoutDiscountCodeInput | ShopifySaleUpdateManyWithWhereWithoutDiscountCodeInput[]
115804
+ deleteMany?: ShopifySaleScalarWhereInput | ShopifySaleScalarWhereInput[]
115805
+ }
115806
+
115807
+ export type ShopifyDiscountCodeCreateNestedOneWithoutShopifySalesInput = {
115808
+ create?: XOR<ShopifyDiscountCodeCreateWithoutShopifySalesInput, ShopifyDiscountCodeUncheckedCreateWithoutShopifySalesInput>
115809
+ connectOrCreate?: ShopifyDiscountCodeCreateOrConnectWithoutShopifySalesInput
115810
+ connect?: ShopifyDiscountCodeWhereUniqueInput
115811
+ }
115812
+
115813
+ export type ShopifyDiscountCodeUpdateOneRequiredWithoutShopifySalesNestedInput = {
115814
+ create?: XOR<ShopifyDiscountCodeCreateWithoutShopifySalesInput, ShopifyDiscountCodeUncheckedCreateWithoutShopifySalesInput>
115815
+ connectOrCreate?: ShopifyDiscountCodeCreateOrConnectWithoutShopifySalesInput
115816
+ upsert?: ShopifyDiscountCodeUpsertWithoutShopifySalesInput
115817
+ connect?: ShopifyDiscountCodeWhereUniqueInput
115818
+ update?: XOR<XOR<ShopifyDiscountCodeUpdateToOneWithWhereWithoutShopifySalesInput, ShopifyDiscountCodeUpdateWithoutShopifySalesInput>, ShopifyDiscountCodeUncheckedUpdateWithoutShopifySalesInput>
115819
+ }
115820
+
113020
115821
  export type NestedIntFilter<$PrismaModel = never> = {
113021
115822
  equals?: number | IntFieldRefInput<$PrismaModel>
113022
115823
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -113345,6 +116146,33 @@ export namespace Prisma {
113345
116146
  _max?: NestedEnumtrolleyPaymentStatusFilter<$PrismaModel>
113346
116147
  }
113347
116148
 
116149
+ export type NestedDecimalNullableFilter<$PrismaModel = never> = {
116150
+ equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
116151
+ in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
116152
+ notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
116153
+ lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116154
+ lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116155
+ gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116156
+ gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116157
+ not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
116158
+ }
116159
+
116160
+ export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
116161
+ equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
116162
+ in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
116163
+ notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
116164
+ lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116165
+ lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116166
+ gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116167
+ gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
116168
+ not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
116169
+ _count?: NestedIntNullableFilter<$PrismaModel>
116170
+ _avg?: NestedDecimalNullableFilter<$PrismaModel>
116171
+ _sum?: NestedDecimalNullableFilter<$PrismaModel>
116172
+ _min?: NestedDecimalNullableFilter<$PrismaModel>
116173
+ _max?: NestedDecimalNullableFilter<$PrismaModel>
116174
+ }
116175
+
113348
116176
  export type NestedEnumShopifyStoreSyncStatusFilter<$PrismaModel = never> = {
113349
116177
  equals?: $Enums.ShopifyStoreSyncStatus | EnumShopifyStoreSyncStatusFieldRefInput<$PrismaModel>
113350
116178
  in?: $Enums.ShopifyStoreSyncStatus[] | ListEnumShopifyStoreSyncStatusFieldRefInput<$PrismaModel>
@@ -113928,6 +116756,7 @@ export namespace Prisma {
113928
116756
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
113929
116757
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
113930
116758
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
116759
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
113931
116760
  }
113932
116761
 
113933
116762
  export type OptInUncheckedCreateWithoutUserInput = {
@@ -113958,6 +116787,7 @@ export namespace Prisma {
113958
116787
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
113959
116788
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
113960
116789
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
116790
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
113961
116791
  }
113962
116792
 
113963
116793
  export type OptInCreateOrConnectWithoutUserInput = {
@@ -120883,6 +123713,7 @@ export namespace Prisma {
120883
123713
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
120884
123714
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
120885
123715
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
123716
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
120886
123717
  }
120887
123718
 
120888
123719
  export type OptInUncheckedCreateWithoutChatInput = {
@@ -120913,6 +123744,7 @@ export namespace Prisma {
120913
123744
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
120914
123745
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
120915
123746
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
123747
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
120916
123748
  }
120917
123749
 
120918
123750
  export type OptInCreateOrConnectWithoutChatInput = {
@@ -120989,6 +123821,7 @@ export namespace Prisma {
120989
123821
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
120990
123822
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
120991
123823
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
123824
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
120992
123825
  }
120993
123826
 
120994
123827
  export type OptInUncheckedUpdateWithoutChatInput = {
@@ -121019,6 +123852,7 @@ export namespace Prisma {
121019
123852
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
121020
123853
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
121021
123854
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
123855
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
121022
123856
  }
121023
123857
 
121024
123858
  export type MessageUpsertWithWhereUniqueWithoutChatInput = {
@@ -121351,6 +124185,7 @@ export namespace Prisma {
121351
124185
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
121352
124186
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
121353
124187
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
124188
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
121354
124189
  }
121355
124190
 
121356
124191
  export type OptInUncheckedCreateWithoutCampaignInput = {
@@ -121381,6 +124216,7 @@ export namespace Prisma {
121381
124216
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
121382
124217
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
121383
124218
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
124219
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
121384
124220
  }
121385
124221
 
121386
124222
  export type OptInCreateOrConnectWithoutCampaignInput = {
@@ -124904,6 +127740,7 @@ export namespace Prisma {
124904
127740
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
124905
127741
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
124906
127742
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
127743
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
124907
127744
  }
124908
127745
 
124909
127746
  export type OptInUncheckedCreateWithoutProductListItemsInput = {
@@ -124934,6 +127771,7 @@ export namespace Prisma {
124934
127771
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
124935
127772
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
124936
127773
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
127774
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
124937
127775
  }
124938
127776
 
124939
127777
  export type OptInCreateOrConnectWithoutProductListItemsInput = {
@@ -125001,6 +127839,7 @@ export namespace Prisma {
125001
127839
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
125002
127840
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
125003
127841
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
127842
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
125004
127843
  }
125005
127844
 
125006
127845
  export type OptInUncheckedUpdateWithoutProductListItemsInput = {
@@ -125031,6 +127870,7 @@ export namespace Prisma {
125031
127870
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
125032
127871
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
125033
127872
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
127873
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
125034
127874
  }
125035
127875
 
125036
127876
  export type ProductListItemUpsertWithoutOptinsInput = {
@@ -125791,6 +128631,7 @@ export namespace Prisma {
125791
128631
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
125792
128632
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
125793
128633
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
128634
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
125794
128635
  }
125795
128636
 
125796
128637
  export type OptInUncheckedCreateWithoutCurrentStepInput = {
@@ -125821,6 +128662,7 @@ export namespace Prisma {
125821
128662
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
125822
128663
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
125823
128664
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
128665
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
125824
128666
  }
125825
128667
 
125826
128668
  export type OptInCreateOrConnectWithoutCurrentStepInput = {
@@ -126107,6 +128949,7 @@ export namespace Prisma {
126107
128949
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
126108
128950
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
126109
128951
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
128952
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
126110
128953
  }
126111
128954
 
126112
128955
  export type OptInUncheckedCreateWithoutOptInStepsInput = {
@@ -126137,6 +128980,7 @@ export namespace Prisma {
126137
128980
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
126138
128981
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
126139
128982
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
128983
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
126140
128984
  }
126141
128985
 
126142
128986
  export type OptInCreateOrConnectWithoutOptInStepsInput = {
@@ -126214,6 +129058,7 @@ export namespace Prisma {
126214
129058
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
126215
129059
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
126216
129060
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
129061
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
126217
129062
  }
126218
129063
 
126219
129064
  export type OptInUncheckedUpdateWithoutOptInStepsInput = {
@@ -126244,6 +129089,7 @@ export namespace Prisma {
126244
129089
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
126245
129090
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
126246
129091
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
129092
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
126247
129093
  }
126248
129094
 
126249
129095
  export type CampaignStepUpsertWithoutOptInStepsInput = {
@@ -126890,17 +129736,19 @@ export namespace Prisma {
126890
129736
  }
126891
129737
 
126892
129738
  export type ShareASaleEventCreateWithoutOptInInput = {
129739
+ transactionId?: string | null
126893
129740
  created?: Date | string
126894
- saleAmount?: number | null
126895
- commission?: number | null
129741
+ saleAmount?: Decimal | DecimalJsLike | number | string | null
129742
+ commission?: Decimal | DecimalJsLike | number | string | null
126896
129743
  metaData?: JsonNullValueInput | InputJsonValue
126897
129744
  }
126898
129745
 
126899
129746
  export type ShareASaleEventUncheckedCreateWithoutOptInInput = {
126900
129747
  id?: number
129748
+ transactionId?: string | null
126901
129749
  created?: Date | string
126902
- saleAmount?: number | null
126903
- commission?: number | null
129750
+ saleAmount?: Decimal | DecimalJsLike | number | string | null
129751
+ commission?: Decimal | DecimalJsLike | number | string | null
126904
129752
  metaData?: JsonNullValueInput | InputJsonValue
126905
129753
  }
126906
129754
 
@@ -126914,6 +129762,31 @@ export namespace Prisma {
126914
129762
  skipDuplicates?: boolean
126915
129763
  }
126916
129764
 
129765
+ export type ShopifyDiscountCodeCreateWithoutOptInInput = {
129766
+ code: string
129767
+ discount: number
129768
+ shopifyPriceRuleId?: string | null
129769
+ shopifySales?: ShopifySaleCreateNestedManyWithoutDiscountCodeInput
129770
+ }
129771
+
129772
+ export type ShopifyDiscountCodeUncheckedCreateWithoutOptInInput = {
129773
+ id?: number
129774
+ code: string
129775
+ discount: number
129776
+ shopifyPriceRuleId?: string | null
129777
+ shopifySales?: ShopifySaleUncheckedCreateNestedManyWithoutDiscountCodeInput
129778
+ }
129779
+
129780
+ export type ShopifyDiscountCodeCreateOrConnectWithoutOptInInput = {
129781
+ where: ShopifyDiscountCodeWhereUniqueInput
129782
+ create: XOR<ShopifyDiscountCodeCreateWithoutOptInInput, ShopifyDiscountCodeUncheckedCreateWithoutOptInInput>
129783
+ }
129784
+
129785
+ export type ShopifyDiscountCodeCreateManyOptInInputEnvelope = {
129786
+ data: ShopifyDiscountCodeCreateManyOptInInput | ShopifyDiscountCodeCreateManyOptInInput[]
129787
+ skipDuplicates?: boolean
129788
+ }
129789
+
126917
129790
  export type UserUpsertWithoutOptInsInput = {
126918
129791
  update: XOR<UserUpdateWithoutOptInsInput, UserUncheckedUpdateWithoutOptInsInput>
126919
129792
  create: XOR<UserCreateWithoutOptInsInput, UserUncheckedCreateWithoutOptInsInput>
@@ -127401,13 +130274,41 @@ export namespace Prisma {
127401
130274
  OR?: ShareASaleEventScalarWhereInput[]
127402
130275
  NOT?: ShareASaleEventScalarWhereInput | ShareASaleEventScalarWhereInput[]
127403
130276
  id?: IntFilter<"ShareASaleEvent"> | number
130277
+ transactionId?: StringNullableFilter<"ShareASaleEvent"> | string | null
127404
130278
  created?: DateTimeFilter<"ShareASaleEvent"> | Date | string
127405
- saleAmount?: FloatNullableFilter<"ShareASaleEvent"> | number | null
127406
- commission?: FloatNullableFilter<"ShareASaleEvent"> | number | null
130279
+ saleAmount?: DecimalNullableFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
130280
+ commission?: DecimalNullableFilter<"ShareASaleEvent"> | Decimal | DecimalJsLike | number | string | null
127407
130281
  metaData?: JsonFilter<"ShareASaleEvent">
127408
130282
  optInId?: IntNullableFilter<"ShareASaleEvent"> | number | null
127409
130283
  }
127410
130284
 
130285
+ export type ShopifyDiscountCodeUpsertWithWhereUniqueWithoutOptInInput = {
130286
+ where: ShopifyDiscountCodeWhereUniqueInput
130287
+ update: XOR<ShopifyDiscountCodeUpdateWithoutOptInInput, ShopifyDiscountCodeUncheckedUpdateWithoutOptInInput>
130288
+ create: XOR<ShopifyDiscountCodeCreateWithoutOptInInput, ShopifyDiscountCodeUncheckedCreateWithoutOptInInput>
130289
+ }
130290
+
130291
+ export type ShopifyDiscountCodeUpdateWithWhereUniqueWithoutOptInInput = {
130292
+ where: ShopifyDiscountCodeWhereUniqueInput
130293
+ data: XOR<ShopifyDiscountCodeUpdateWithoutOptInInput, ShopifyDiscountCodeUncheckedUpdateWithoutOptInInput>
130294
+ }
130295
+
130296
+ export type ShopifyDiscountCodeUpdateManyWithWhereWithoutOptInInput = {
130297
+ where: ShopifyDiscountCodeScalarWhereInput
130298
+ data: XOR<ShopifyDiscountCodeUpdateManyMutationInput, ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInInput>
130299
+ }
130300
+
130301
+ export type ShopifyDiscountCodeScalarWhereInput = {
130302
+ AND?: ShopifyDiscountCodeScalarWhereInput | ShopifyDiscountCodeScalarWhereInput[]
130303
+ OR?: ShopifyDiscountCodeScalarWhereInput[]
130304
+ NOT?: ShopifyDiscountCodeScalarWhereInput | ShopifyDiscountCodeScalarWhereInput[]
130305
+ id?: IntFilter<"ShopifyDiscountCode"> | number
130306
+ code?: StringFilter<"ShopifyDiscountCode"> | string
130307
+ discount?: FloatFilter<"ShopifyDiscountCode"> | number
130308
+ shopifyPriceRuleId?: StringNullableFilter<"ShopifyDiscountCode"> | string | null
130309
+ optInId?: IntFilter<"ShopifyDiscountCode"> | number
130310
+ }
130311
+
127411
130312
  export type OptInCreateWithoutTrolleyPaymentsInput = {
127412
130313
  status?: string
127413
130314
  created?: Date | string
@@ -127435,6 +130336,7 @@ export namespace Prisma {
127435
130336
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
127436
130337
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
127437
130338
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
130339
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
127438
130340
  }
127439
130341
 
127440
130342
  export type OptInUncheckedCreateWithoutTrolleyPaymentsInput = {
@@ -127465,6 +130367,7 @@ export namespace Prisma {
127465
130367
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
127466
130368
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
127467
130369
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
130370
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
127468
130371
  }
127469
130372
 
127470
130373
  export type OptInCreateOrConnectWithoutTrolleyPaymentsInput = {
@@ -127510,6 +130413,7 @@ export namespace Prisma {
127510
130413
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
127511
130414
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
127512
130415
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
130416
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
127513
130417
  }
127514
130418
 
127515
130419
  export type OptInUncheckedUpdateWithoutTrolleyPaymentsInput = {
@@ -127540,6 +130444,7 @@ export namespace Prisma {
127540
130444
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
127541
130445
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
127542
130446
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
130447
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
127543
130448
  }
127544
130449
 
127545
130450
  export type OptInCreateWithoutVariablesInput = {
@@ -127569,6 +130474,7 @@ export namespace Prisma {
127569
130474
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
127570
130475
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
127571
130476
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
130477
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
127572
130478
  }
127573
130479
 
127574
130480
  export type OptInUncheckedCreateWithoutVariablesInput = {
@@ -127599,6 +130505,7 @@ export namespace Prisma {
127599
130505
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
127600
130506
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
127601
130507
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
130508
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
127602
130509
  }
127603
130510
 
127604
130511
  export type OptInCreateOrConnectWithoutVariablesInput = {
@@ -127686,6 +130593,7 @@ export namespace Prisma {
127686
130593
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
127687
130594
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
127688
130595
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
130596
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
127689
130597
  }
127690
130598
 
127691
130599
  export type OptInUncheckedUpdateWithoutVariablesInput = {
@@ -127716,6 +130624,7 @@ export namespace Prisma {
127716
130624
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
127717
130625
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
127718
130626
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
130627
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
127719
130628
  }
127720
130629
 
127721
130630
  export type VariableUpsertWithoutOptInVariablesInput = {
@@ -129026,6 +131935,7 @@ export namespace Prisma {
129026
131935
  productListItems?: OptinToProductListItemCreateNestedManyWithoutOptInInput
129027
131936
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
129028
131937
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
131938
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
129029
131939
  }
129030
131940
 
129031
131941
  export type OptInUncheckedCreateWithoutExternalAffiliateClickInput = {
@@ -129056,6 +131966,7 @@ export namespace Prisma {
129056
131966
  productListItems?: OptinToProductListItemUncheckedCreateNestedManyWithoutOptInInput
129057
131967
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
129058
131968
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
131969
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
129059
131970
  }
129060
131971
 
129061
131972
  export type OptInCreateOrConnectWithoutExternalAffiliateClickInput = {
@@ -129247,6 +132158,7 @@ export namespace Prisma {
129247
132158
  productListItems?: OptinToProductListItemUpdateManyWithoutOptInNestedInput
129248
132159
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
129249
132160
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
132161
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
129250
132162
  }
129251
132163
 
129252
132164
  export type OptInUncheckedUpdateWithoutExternalAffiliateClickInput = {
@@ -129277,6 +132189,7 @@ export namespace Prisma {
129277
132189
  productListItems?: OptinToProductListItemUncheckedUpdateManyWithoutOptInNestedInput
129278
132190
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
129279
132191
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
132192
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
129280
132193
  }
129281
132194
 
129282
132195
  export type CampaignUpsertWithoutExternalAffiliateClickInput = {
@@ -129992,6 +132905,7 @@ export namespace Prisma {
129992
132905
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
129993
132906
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
129994
132907
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
132908
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
129995
132909
  }
129996
132910
 
129997
132911
  export type OptInUncheckedCreateWithoutAffiliateClicksInput = {
@@ -130022,6 +132936,7 @@ export namespace Prisma {
130022
132936
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
130023
132937
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
130024
132938
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
132939
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
130025
132940
  }
130026
132941
 
130027
132942
  export type OptInCreateOrConnectWithoutAffiliateClicksInput = {
@@ -130120,6 +133035,7 @@ export namespace Prisma {
130120
133035
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
130121
133036
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
130122
133037
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
133038
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
130123
133039
  }
130124
133040
 
130125
133041
  export type OptInUncheckedUpdateWithoutAffiliateClicksInput = {
@@ -130150,6 +133066,7 @@ export namespace Prisma {
130150
133066
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
130151
133067
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
130152
133068
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
133069
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
130153
133070
  }
130154
133071
 
130155
133072
  export type AffiliateLinkUpsertWithoutAffiliateClicksInput = {
@@ -130737,6 +133654,7 @@ export namespace Prisma {
130737
133654
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
130738
133655
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
130739
133656
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
133657
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
130740
133658
  }
130741
133659
 
130742
133660
  export type OptInUncheckedCreateWithoutCampaignInvitesInput = {
@@ -130767,6 +133685,7 @@ export namespace Prisma {
130767
133685
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
130768
133686
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
130769
133687
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
133688
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
130770
133689
  }
130771
133690
 
130772
133691
  export type OptInCreateOrConnectWithoutCampaignInvitesInput = {
@@ -131106,6 +134025,7 @@ export namespace Prisma {
131106
134025
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
131107
134026
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
131108
134027
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
134028
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
131109
134029
  }
131110
134030
 
131111
134031
  export type OptInUncheckedUpdateWithoutCampaignInvitesInput = {
@@ -131136,6 +134056,7 @@ export namespace Prisma {
131136
134056
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
131137
134057
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
131138
134058
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
134059
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
131139
134060
  }
131140
134061
 
131141
134062
  export type CreatorListItemCreateWithoutCreatorListInput = {
@@ -133832,6 +136753,7 @@ export namespace Prisma {
133832
136753
  productListItems?: OptinToProductListItemCreateNestedManyWithoutOptInInput
133833
136754
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
133834
136755
  ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
136756
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
133835
136757
  }
133836
136758
 
133837
136759
  export type OptInUncheckedCreateWithoutImpactRadiusEventInput = {
@@ -133862,6 +136784,7 @@ export namespace Prisma {
133862
136784
  productListItems?: OptinToProductListItemUncheckedCreateNestedManyWithoutOptInInput
133863
136785
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
133864
136786
  ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
136787
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
133865
136788
  }
133866
136789
 
133867
136790
  export type OptInCreateOrConnectWithoutImpactRadiusEventInput = {
@@ -134091,6 +137014,7 @@ export namespace Prisma {
134091
137014
  productListItems?: OptinToProductListItemUpdateManyWithoutOptInNestedInput
134092
137015
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
134093
137016
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
137017
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
134094
137018
  }
134095
137019
 
134096
137020
  export type OptInUncheckedUpdateWithoutImpactRadiusEventInput = {
@@ -134121,6 +137045,7 @@ export namespace Prisma {
134121
137045
  productListItems?: OptinToProductListItemUncheckedUpdateManyWithoutOptInNestedInput
134122
137046
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
134123
137047
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
137048
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
134124
137049
  }
134125
137050
 
134126
137051
  export type OptInCreateWithoutShareASaleEventsInput = {
@@ -134150,6 +137075,7 @@ export namespace Prisma {
134150
137075
  productListItems?: OptinToProductListItemCreateNestedManyWithoutOptInInput
134151
137076
  ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
134152
137077
  ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
137078
+ ShopifyDiscountCodes?: ShopifyDiscountCodeCreateNestedManyWithoutOptInInput
134153
137079
  }
134154
137080
 
134155
137081
  export type OptInUncheckedCreateWithoutShareASaleEventsInput = {
@@ -134180,6 +137106,7 @@ export namespace Prisma {
134180
137106
  productListItems?: OptinToProductListItemUncheckedCreateNestedManyWithoutOptInInput
134181
137107
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
134182
137108
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
137109
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedCreateNestedManyWithoutOptInInput
134183
137110
  }
134184
137111
 
134185
137112
  export type OptInCreateOrConnectWithoutShareASaleEventsInput = {
@@ -134225,6 +137152,7 @@ export namespace Prisma {
134225
137152
  productListItems?: OptinToProductListItemUpdateManyWithoutOptInNestedInput
134226
137153
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
134227
137154
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
137155
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
134228
137156
  }
134229
137157
 
134230
137158
  export type OptInUncheckedUpdateWithoutShareASaleEventsInput = {
@@ -134255,6 +137183,7 @@ export namespace Prisma {
134255
137183
  productListItems?: OptinToProductListItemUncheckedUpdateManyWithoutOptInNestedInput
134256
137184
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
134257
137185
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
137186
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
134258
137187
  }
134259
137188
 
134260
137189
  export type BrandCreateWithoutCreatorsearchfilterInput = {
@@ -136538,6 +139467,237 @@ export namespace Prisma {
136538
139467
  variations?: ShopifyProductVariationUncheckedUpdateManyWithoutShopifyProductNestedInput
136539
139468
  }
136540
139469
 
139470
+ export type OptInCreateWithoutShopifyDiscountCodesInput = {
139471
+ status?: string
139472
+ created?: Date | string
139473
+ activated?: Date | string | null
139474
+ completed?: Date | string | null
139475
+ cancelled?: Date | string | null
139476
+ cancelledData?: JsonNullValueInput | InputJsonValue
139477
+ cancelRequested?: Date | string | null
139478
+ reinvited?: Date | string | null
139479
+ seen?: boolean
139480
+ instructions?: string | null
139481
+ paymentAmount?: number | null
139482
+ paymentStatus?: string
139483
+ extraData?: JsonNullValueInput | InputJsonValue
139484
+ favoritedDate?: Date | string | null
139485
+ user: UserCreateNestedOneWithoutOptInsInput
139486
+ campaign: CampaignCreateNestedOneWithoutOptInsInput
139487
+ currentStep?: CampaignStepCreateNestedOneWithoutCurrentOptInsInput
139488
+ variables?: OptInVariableCreateNestedManyWithoutOptInInput
139489
+ optInSteps?: OptInStepCreateNestedManyWithoutOptInInput
139490
+ chat?: ChatCreateNestedOneWithoutOptInInput
139491
+ campaignInvites?: CampaignInviteCreateNestedManyWithoutOptInInput
139492
+ trolleyPayments?: TrolleyPaymentCreateNestedManyWithoutOptInInput
139493
+ affiliateClicks?: AffiliateClickCreateNestedManyWithoutOptinInput
139494
+ productListItems?: OptinToProductListItemCreateNestedManyWithoutOptInInput
139495
+ ExternalAffiliateClick?: ExternalAffiliateClickCreateNestedManyWithoutOptinInput
139496
+ ImpactRadiusEvent?: ImpactRadiusEventCreateNestedManyWithoutOptInInput
139497
+ ShareASaleEvents?: ShareASaleEventCreateNestedManyWithoutOptInInput
139498
+ }
139499
+
139500
+ export type OptInUncheckedCreateWithoutShopifyDiscountCodesInput = {
139501
+ id?: number
139502
+ status?: string
139503
+ created?: Date | string
139504
+ activated?: Date | string | null
139505
+ completed?: Date | string | null
139506
+ cancelled?: Date | string | null
139507
+ cancelledData?: JsonNullValueInput | InputJsonValue
139508
+ cancelRequested?: Date | string | null
139509
+ reinvited?: Date | string | null
139510
+ seen?: boolean
139511
+ instructions?: string | null
139512
+ paymentAmount?: number | null
139513
+ paymentStatus?: string
139514
+ extraData?: JsonNullValueInput | InputJsonValue
139515
+ favoritedDate?: Date | string | null
139516
+ userId: number
139517
+ campaignId: number
139518
+ currentStepId?: number | null
139519
+ variables?: OptInVariableUncheckedCreateNestedManyWithoutOptInInput
139520
+ optInSteps?: OptInStepUncheckedCreateNestedManyWithoutOptInInput
139521
+ chat?: ChatUncheckedCreateNestedOneWithoutOptInInput
139522
+ campaignInvites?: CampaignInviteUncheckedCreateNestedManyWithoutOptInInput
139523
+ trolleyPayments?: TrolleyPaymentUncheckedCreateNestedManyWithoutOptInInput
139524
+ affiliateClicks?: AffiliateClickUncheckedCreateNestedManyWithoutOptinInput
139525
+ productListItems?: OptinToProductListItemUncheckedCreateNestedManyWithoutOptInInput
139526
+ ExternalAffiliateClick?: ExternalAffiliateClickUncheckedCreateNestedManyWithoutOptinInput
139527
+ ImpactRadiusEvent?: ImpactRadiusEventUncheckedCreateNestedManyWithoutOptInInput
139528
+ ShareASaleEvents?: ShareASaleEventUncheckedCreateNestedManyWithoutOptInInput
139529
+ }
139530
+
139531
+ export type OptInCreateOrConnectWithoutShopifyDiscountCodesInput = {
139532
+ where: OptInWhereUniqueInput
139533
+ create: XOR<OptInCreateWithoutShopifyDiscountCodesInput, OptInUncheckedCreateWithoutShopifyDiscountCodesInput>
139534
+ }
139535
+
139536
+ export type ShopifySaleCreateWithoutDiscountCodeInput = {
139537
+ amount: number
139538
+ metaData?: NullableJsonNullValueInput | InputJsonValue
139539
+ }
139540
+
139541
+ export type ShopifySaleUncheckedCreateWithoutDiscountCodeInput = {
139542
+ id?: number
139543
+ amount: number
139544
+ metaData?: NullableJsonNullValueInput | InputJsonValue
139545
+ }
139546
+
139547
+ export type ShopifySaleCreateOrConnectWithoutDiscountCodeInput = {
139548
+ where: ShopifySaleWhereUniqueInput
139549
+ create: XOR<ShopifySaleCreateWithoutDiscountCodeInput, ShopifySaleUncheckedCreateWithoutDiscountCodeInput>
139550
+ }
139551
+
139552
+ export type ShopifySaleCreateManyDiscountCodeInputEnvelope = {
139553
+ data: ShopifySaleCreateManyDiscountCodeInput | ShopifySaleCreateManyDiscountCodeInput[]
139554
+ skipDuplicates?: boolean
139555
+ }
139556
+
139557
+ export type OptInUpsertWithoutShopifyDiscountCodesInput = {
139558
+ update: XOR<OptInUpdateWithoutShopifyDiscountCodesInput, OptInUncheckedUpdateWithoutShopifyDiscountCodesInput>
139559
+ create: XOR<OptInCreateWithoutShopifyDiscountCodesInput, OptInUncheckedCreateWithoutShopifyDiscountCodesInput>
139560
+ where?: OptInWhereInput
139561
+ }
139562
+
139563
+ export type OptInUpdateToOneWithWhereWithoutShopifyDiscountCodesInput = {
139564
+ where?: OptInWhereInput
139565
+ data: XOR<OptInUpdateWithoutShopifyDiscountCodesInput, OptInUncheckedUpdateWithoutShopifyDiscountCodesInput>
139566
+ }
139567
+
139568
+ export type OptInUpdateWithoutShopifyDiscountCodesInput = {
139569
+ status?: StringFieldUpdateOperationsInput | string
139570
+ created?: DateTimeFieldUpdateOperationsInput | Date | string
139571
+ activated?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139572
+ completed?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139573
+ cancelled?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139574
+ cancelledData?: JsonNullValueInput | InputJsonValue
139575
+ cancelRequested?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139576
+ reinvited?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139577
+ seen?: BoolFieldUpdateOperationsInput | boolean
139578
+ instructions?: NullableStringFieldUpdateOperationsInput | string | null
139579
+ paymentAmount?: NullableFloatFieldUpdateOperationsInput | number | null
139580
+ paymentStatus?: StringFieldUpdateOperationsInput | string
139581
+ extraData?: JsonNullValueInput | InputJsonValue
139582
+ favoritedDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139583
+ user?: UserUpdateOneRequiredWithoutOptInsNestedInput
139584
+ campaign?: CampaignUpdateOneRequiredWithoutOptInsNestedInput
139585
+ currentStep?: CampaignStepUpdateOneWithoutCurrentOptInsNestedInput
139586
+ variables?: OptInVariableUpdateManyWithoutOptInNestedInput
139587
+ optInSteps?: OptInStepUpdateManyWithoutOptInNestedInput
139588
+ chat?: ChatUpdateOneWithoutOptInNestedInput
139589
+ campaignInvites?: CampaignInviteUpdateManyWithoutOptInNestedInput
139590
+ trolleyPayments?: TrolleyPaymentUpdateManyWithoutOptInNestedInput
139591
+ affiliateClicks?: AffiliateClickUpdateManyWithoutOptinNestedInput
139592
+ productListItems?: OptinToProductListItemUpdateManyWithoutOptInNestedInput
139593
+ ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
139594
+ ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
139595
+ ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
139596
+ }
139597
+
139598
+ export type OptInUncheckedUpdateWithoutShopifyDiscountCodesInput = {
139599
+ id?: IntFieldUpdateOperationsInput | number
139600
+ status?: StringFieldUpdateOperationsInput | string
139601
+ created?: DateTimeFieldUpdateOperationsInput | Date | string
139602
+ activated?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139603
+ completed?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139604
+ cancelled?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139605
+ cancelledData?: JsonNullValueInput | InputJsonValue
139606
+ cancelRequested?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139607
+ reinvited?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139608
+ seen?: BoolFieldUpdateOperationsInput | boolean
139609
+ instructions?: NullableStringFieldUpdateOperationsInput | string | null
139610
+ paymentAmount?: NullableFloatFieldUpdateOperationsInput | number | null
139611
+ paymentStatus?: StringFieldUpdateOperationsInput | string
139612
+ extraData?: JsonNullValueInput | InputJsonValue
139613
+ favoritedDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
139614
+ userId?: IntFieldUpdateOperationsInput | number
139615
+ campaignId?: IntFieldUpdateOperationsInput | number
139616
+ currentStepId?: NullableIntFieldUpdateOperationsInput | number | null
139617
+ variables?: OptInVariableUncheckedUpdateManyWithoutOptInNestedInput
139618
+ optInSteps?: OptInStepUncheckedUpdateManyWithoutOptInNestedInput
139619
+ chat?: ChatUncheckedUpdateOneWithoutOptInNestedInput
139620
+ campaignInvites?: CampaignInviteUncheckedUpdateManyWithoutOptInNestedInput
139621
+ trolleyPayments?: TrolleyPaymentUncheckedUpdateManyWithoutOptInNestedInput
139622
+ affiliateClicks?: AffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
139623
+ productListItems?: OptinToProductListItemUncheckedUpdateManyWithoutOptInNestedInput
139624
+ ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
139625
+ ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
139626
+ ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
139627
+ }
139628
+
139629
+ export type ShopifySaleUpsertWithWhereUniqueWithoutDiscountCodeInput = {
139630
+ where: ShopifySaleWhereUniqueInput
139631
+ update: XOR<ShopifySaleUpdateWithoutDiscountCodeInput, ShopifySaleUncheckedUpdateWithoutDiscountCodeInput>
139632
+ create: XOR<ShopifySaleCreateWithoutDiscountCodeInput, ShopifySaleUncheckedCreateWithoutDiscountCodeInput>
139633
+ }
139634
+
139635
+ export type ShopifySaleUpdateWithWhereUniqueWithoutDiscountCodeInput = {
139636
+ where: ShopifySaleWhereUniqueInput
139637
+ data: XOR<ShopifySaleUpdateWithoutDiscountCodeInput, ShopifySaleUncheckedUpdateWithoutDiscountCodeInput>
139638
+ }
139639
+
139640
+ export type ShopifySaleUpdateManyWithWhereWithoutDiscountCodeInput = {
139641
+ where: ShopifySaleScalarWhereInput
139642
+ data: XOR<ShopifySaleUpdateManyMutationInput, ShopifySaleUncheckedUpdateManyWithoutDiscountCodeInput>
139643
+ }
139644
+
139645
+ export type ShopifySaleScalarWhereInput = {
139646
+ AND?: ShopifySaleScalarWhereInput | ShopifySaleScalarWhereInput[]
139647
+ OR?: ShopifySaleScalarWhereInput[]
139648
+ NOT?: ShopifySaleScalarWhereInput | ShopifySaleScalarWhereInput[]
139649
+ id?: IntFilter<"ShopifySale"> | number
139650
+ amount?: FloatFilter<"ShopifySale"> | number
139651
+ metaData?: JsonNullableFilter<"ShopifySale">
139652
+ discountCodeId?: IntFilter<"ShopifySale"> | number
139653
+ }
139654
+
139655
+ export type ShopifyDiscountCodeCreateWithoutShopifySalesInput = {
139656
+ code: string
139657
+ discount: number
139658
+ shopifyPriceRuleId?: string | null
139659
+ optIn: OptInCreateNestedOneWithoutShopifyDiscountCodesInput
139660
+ }
139661
+
139662
+ export type ShopifyDiscountCodeUncheckedCreateWithoutShopifySalesInput = {
139663
+ id?: number
139664
+ code: string
139665
+ discount: number
139666
+ shopifyPriceRuleId?: string | null
139667
+ optInId: number
139668
+ }
139669
+
139670
+ export type ShopifyDiscountCodeCreateOrConnectWithoutShopifySalesInput = {
139671
+ where: ShopifyDiscountCodeWhereUniqueInput
139672
+ create: XOR<ShopifyDiscountCodeCreateWithoutShopifySalesInput, ShopifyDiscountCodeUncheckedCreateWithoutShopifySalesInput>
139673
+ }
139674
+
139675
+ export type ShopifyDiscountCodeUpsertWithoutShopifySalesInput = {
139676
+ update: XOR<ShopifyDiscountCodeUpdateWithoutShopifySalesInput, ShopifyDiscountCodeUncheckedUpdateWithoutShopifySalesInput>
139677
+ create: XOR<ShopifyDiscountCodeCreateWithoutShopifySalesInput, ShopifyDiscountCodeUncheckedCreateWithoutShopifySalesInput>
139678
+ where?: ShopifyDiscountCodeWhereInput
139679
+ }
139680
+
139681
+ export type ShopifyDiscountCodeUpdateToOneWithWhereWithoutShopifySalesInput = {
139682
+ where?: ShopifyDiscountCodeWhereInput
139683
+ data: XOR<ShopifyDiscountCodeUpdateWithoutShopifySalesInput, ShopifyDiscountCodeUncheckedUpdateWithoutShopifySalesInput>
139684
+ }
139685
+
139686
+ export type ShopifyDiscountCodeUpdateWithoutShopifySalesInput = {
139687
+ code?: StringFieldUpdateOperationsInput | string
139688
+ discount?: FloatFieldUpdateOperationsInput | number
139689
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
139690
+ optIn?: OptInUpdateOneRequiredWithoutShopifyDiscountCodesNestedInput
139691
+ }
139692
+
139693
+ export type ShopifyDiscountCodeUncheckedUpdateWithoutShopifySalesInput = {
139694
+ id?: IntFieldUpdateOperationsInput | number
139695
+ code?: StringFieldUpdateOperationsInput | string
139696
+ discount?: FloatFieldUpdateOperationsInput | number
139697
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
139698
+ optInId?: IntFieldUpdateOperationsInput | number
139699
+ }
139700
+
136541
139701
  export type UserCreateManyReferrerInput = {
136542
139702
  id?: number
136543
139703
  role: string
@@ -136890,6 +140050,7 @@ export namespace Prisma {
136890
140050
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
136891
140051
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
136892
140052
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
140053
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
136893
140054
  }
136894
140055
 
136895
140056
  export type OptInUncheckedUpdateWithoutUserInput = {
@@ -136920,6 +140081,7 @@ export namespace Prisma {
136920
140081
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
136921
140082
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
136922
140083
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
140084
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
136923
140085
  }
136924
140086
 
136925
140087
  export type OptInUncheckedUpdateManyWithoutUserInput = {
@@ -138716,6 +141878,7 @@ export namespace Prisma {
138716
141878
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
138717
141879
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
138718
141880
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
141881
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
138719
141882
  }
138720
141883
 
138721
141884
  export type OptInUncheckedUpdateWithoutCampaignInput = {
@@ -138746,6 +141909,7 @@ export namespace Prisma {
138746
141909
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
138747
141910
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
138748
141911
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
141912
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
138749
141913
  }
138750
141914
 
138751
141915
  export type OptInUncheckedUpdateManyWithoutCampaignInput = {
@@ -139402,6 +142566,7 @@ export namespace Prisma {
139402
142566
  ExternalAffiliateClick?: ExternalAffiliateClickUpdateManyWithoutOptinNestedInput
139403
142567
  ImpactRadiusEvent?: ImpactRadiusEventUpdateManyWithoutOptInNestedInput
139404
142568
  ShareASaleEvents?: ShareASaleEventUpdateManyWithoutOptInNestedInput
142569
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUpdateManyWithoutOptInNestedInput
139405
142570
  }
139406
142571
 
139407
142572
  export type OptInUncheckedUpdateWithoutCurrentStepInput = {
@@ -139432,6 +142597,7 @@ export namespace Prisma {
139432
142597
  ExternalAffiliateClick?: ExternalAffiliateClickUncheckedUpdateManyWithoutOptinNestedInput
139433
142598
  ImpactRadiusEvent?: ImpactRadiusEventUncheckedUpdateManyWithoutOptInNestedInput
139434
142599
  ShareASaleEvents?: ShareASaleEventUncheckedUpdateManyWithoutOptInNestedInput
142600
+ ShopifyDiscountCodes?: ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInNestedInput
139435
142601
  }
139436
142602
 
139437
142603
  export type OptInUncheckedUpdateManyWithoutCurrentStepInput = {
@@ -139597,12 +142763,20 @@ export namespace Prisma {
139597
142763
 
139598
142764
  export type ShareASaleEventCreateManyOptInInput = {
139599
142765
  id?: number
142766
+ transactionId?: string | null
139600
142767
  created?: Date | string
139601
- saleAmount?: number | null
139602
- commission?: number | null
142768
+ saleAmount?: Decimal | DecimalJsLike | number | string | null
142769
+ commission?: Decimal | DecimalJsLike | number | string | null
139603
142770
  metaData?: JsonNullValueInput | InputJsonValue
139604
142771
  }
139605
142772
 
142773
+ export type ShopifyDiscountCodeCreateManyOptInInput = {
142774
+ id?: number
142775
+ code: string
142776
+ discount: number
142777
+ shopifyPriceRuleId?: string | null
142778
+ }
142779
+
139606
142780
  export type OptInVariableUpdateWithoutOptInInput = {
139607
142781
  variable?: VariableUpdateOneRequiredWithoutOptInVariablesNestedInput
139608
142782
  selectedOption?: VariableOptionUpdateOneRequiredWithoutOptInVariablesNestedInput
@@ -139809,28 +142983,53 @@ export namespace Prisma {
139809
142983
  }
139810
142984
 
139811
142985
  export type ShareASaleEventUpdateWithoutOptInInput = {
142986
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
139812
142987
  created?: DateTimeFieldUpdateOperationsInput | Date | string
139813
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
139814
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
142988
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
142989
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
139815
142990
  metaData?: JsonNullValueInput | InputJsonValue
139816
142991
  }
139817
142992
 
139818
142993
  export type ShareASaleEventUncheckedUpdateWithoutOptInInput = {
139819
142994
  id?: IntFieldUpdateOperationsInput | number
142995
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
139820
142996
  created?: DateTimeFieldUpdateOperationsInput | Date | string
139821
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
139822
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
142997
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
142998
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
139823
142999
  metaData?: JsonNullValueInput | InputJsonValue
139824
143000
  }
139825
143001
 
139826
143002
  export type ShareASaleEventUncheckedUpdateManyWithoutOptInInput = {
139827
143003
  id?: IntFieldUpdateOperationsInput | number
143004
+ transactionId?: NullableStringFieldUpdateOperationsInput | string | null
139828
143005
  created?: DateTimeFieldUpdateOperationsInput | Date | string
139829
- saleAmount?: NullableFloatFieldUpdateOperationsInput | number | null
139830
- commission?: NullableFloatFieldUpdateOperationsInput | number | null
143006
+ saleAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
143007
+ commission?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
139831
143008
  metaData?: JsonNullValueInput | InputJsonValue
139832
143009
  }
139833
143010
 
143011
+ export type ShopifyDiscountCodeUpdateWithoutOptInInput = {
143012
+ code?: StringFieldUpdateOperationsInput | string
143013
+ discount?: FloatFieldUpdateOperationsInput | number
143014
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
143015
+ shopifySales?: ShopifySaleUpdateManyWithoutDiscountCodeNestedInput
143016
+ }
143017
+
143018
+ export type ShopifyDiscountCodeUncheckedUpdateWithoutOptInInput = {
143019
+ id?: IntFieldUpdateOperationsInput | number
143020
+ code?: StringFieldUpdateOperationsInput | string
143021
+ discount?: FloatFieldUpdateOperationsInput | number
143022
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
143023
+ shopifySales?: ShopifySaleUncheckedUpdateManyWithoutDiscountCodeNestedInput
143024
+ }
143025
+
143026
+ export type ShopifyDiscountCodeUncheckedUpdateManyWithoutOptInInput = {
143027
+ id?: IntFieldUpdateOperationsInput | number
143028
+ code?: StringFieldUpdateOperationsInput | string
143029
+ discount?: FloatFieldUpdateOperationsInput | number
143030
+ shopifyPriceRuleId?: NullableStringFieldUpdateOperationsInput | string | null
143031
+ }
143032
+
139834
143033
  export type ListToSocialPostCreateManySocialPostInput = {
139835
143034
  id?: number
139836
143035
  listId: number
@@ -140580,6 +143779,29 @@ export namespace Prisma {
140580
143779
  metaData?: JsonNullValueInput | InputJsonValue
140581
143780
  }
140582
143781
 
143782
+ export type ShopifySaleCreateManyDiscountCodeInput = {
143783
+ id?: number
143784
+ amount: number
143785
+ metaData?: NullableJsonNullValueInput | InputJsonValue
143786
+ }
143787
+
143788
+ export type ShopifySaleUpdateWithoutDiscountCodeInput = {
143789
+ amount?: FloatFieldUpdateOperationsInput | number
143790
+ metaData?: NullableJsonNullValueInput | InputJsonValue
143791
+ }
143792
+
143793
+ export type ShopifySaleUncheckedUpdateWithoutDiscountCodeInput = {
143794
+ id?: IntFieldUpdateOperationsInput | number
143795
+ amount?: FloatFieldUpdateOperationsInput | number
143796
+ metaData?: NullableJsonNullValueInput | InputJsonValue
143797
+ }
143798
+
143799
+ export type ShopifySaleUncheckedUpdateManyWithoutDiscountCodeInput = {
143800
+ id?: IntFieldUpdateOperationsInput | number
143801
+ amount?: FloatFieldUpdateOperationsInput | number
143802
+ metaData?: NullableJsonNullValueInput | InputJsonValue
143803
+ }
143804
+
140583
143805
 
140584
143806
 
140585
143807
  /**
@@ -140701,6 +143923,10 @@ export namespace Prisma {
140701
143923
  * @deprecated Use ShopifyProductCountOutputTypeDefaultArgs instead
140702
143924
  */
140703
143925
  export type ShopifyProductCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ShopifyProductCountOutputTypeDefaultArgs<ExtArgs>
143926
+ /**
143927
+ * @deprecated Use ShopifyDiscountCodeCountOutputTypeDefaultArgs instead
143928
+ */
143929
+ export type ShopifyDiscountCodeCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ShopifyDiscountCodeCountOutputTypeDefaultArgs<ExtArgs>
140704
143930
  /**
140705
143931
  * @deprecated Use UserDefaultArgs instead
140706
143932
  */
@@ -140989,6 +144215,14 @@ export namespace Prisma {
140989
144215
  * @deprecated Use CampaignToShopifyProductDefaultArgs instead
140990
144216
  */
140991
144217
  export type CampaignToShopifyProductArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CampaignToShopifyProductDefaultArgs<ExtArgs>
144218
+ /**
144219
+ * @deprecated Use ShopifyDiscountCodeDefaultArgs instead
144220
+ */
144221
+ export type ShopifyDiscountCodeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ShopifyDiscountCodeDefaultArgs<ExtArgs>
144222
+ /**
144223
+ * @deprecated Use ShopifySaleDefaultArgs instead
144224
+ */
144225
+ export type ShopifySaleArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ShopifySaleDefaultArgs<ExtArgs>
140992
144226
 
140993
144227
  /**
140994
144228
  * Batch Payload for updateMany & deleteMany & createMany