0x00020003
  J   7ˆl–Ðz¾”ªC]Šq@=q¦®41hß�þ\iÕœlH 	Çeÿçäƒ€wã_“I|¥ŽõHºl=$¤�zTÖ™	Èá G    7// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

import {
  convertToGraphQLId,
  isGraphQLId,
  ensureGraphqlId,
  parseGraphqlId,
  getIdFromGraphQLId,
} from '../utils.ts'

describe('isGraphQLId', () => {
  it('check for valid id', async () => {
    expect(isGraphQLId('gid://zammad/Organization/1')).toBe(true)
  })

  it('check for invalid id', async () => {
    expect(isGraphQLId('invalid')).toBe(false)
  })
})

describe('convertToGraphQLId', () => {
  it('check convertion', async () => {
    expect(convertToGraphQLId('Organization', 1)).toBe('gid://zammad/Organization/1')
  })
})

describe('convertToGraphQLId', () => {
  it('check convertion', async () => {
    expect(convertToGraphQLId('Organization', 1)).toBe('gid://zammad/Organization/1')
  })
})

describe('ensureGraphqlId', () => {
  it('check that we have always a GraphQL id', async () => {
    expect(ensureGraphqlId('Organization', 1)).toBe('gid://zammad/Organization/1')
  })

  it('check that we have always a GraphQL id (also when it has the correct format)', async () => {
    expect(ensureGraphqlId('Organization', 'gid://zammad/Organization/1')).toBe(
      'gid://zammad/Organization/1',
    )
  })
})

describe('getIdFromGraphQLId', () => {
  it('check that ID can parsed from graphqlId ', async () => {
    expect(getIdFromGraphQLId('gid://zammad/Organization/1')).toBe(1)
  })
})

describe('parseGraphqlId', () => {
  it('correctly parses graphqlId ', async () => {
    expect(parseGraphqlId('gid://zammad/Organization/1')).toEqual({
      relation: 'Organization',
      id: 1,
    })
  })
})
  <   9ˆl–Ým_JÅ!¶e8 \¸'®6Ò˜´o“þ^fEœmñâVäxMìÕÿ?æàßå748ÞÉâ ì    9‹      ••ÛnÛ8†ïózá-¤äðœÅÞõ-
ƒ’ÃÆH$’\Ôo¿#É‘8@d_˜‡1çÿøIÿÁî¾'ìòóOð¿»_w÷÷¿6ý¢Ø<Ì½±}|üÑÝ!øÖÅ8Î>>Íë7TÁ‚&+[�èøCJÉ†P6òa3.š2m·Û‡Yá¹#,}”“È<¸Öi¨É˜Ÿ)Æ~À¡gá“ª&@í�	H(@cÌÆ+iªr°¨.æ—»†"LòÜ»A»dÙT³•!Þ.¥Š´ºÖ5ÚMT“rsÒ=´»};Éb{|Ýç–‹2Ê�S‡3DŒÎ¡V_@ g…B¹\<‘QÄûâáéérxø€³ð5šš÷Mƒ-WÅÔ·nŸ©ï©D=�N¿XâKôÚ¶ŽÊ®¿òÌí´hòãÙp:i#”"¡²^¥w^~mØBØ¶”6‹!/Á–é[‘ÓR¡5Æ@E5g�%1›â³ë³XSÈÏ¸jG™vØ;û)b|�¯u+º 3ÉàsV hR
’v`ëZ÷v5}tg¨iâÇ øZd‰Hù\¬ñÅèjEj2þÇZF¢öí0¶é8Pý™lÏÁ)´Ö)2ŒÄ4™›cA¡t994J®>g3Ýþ0\â…�x§èM|)«1I“‹qütVa�jµ‰xœ­]Ë×{.wØè}wŒRœÙN±9²L–d‹­\HUÉ¼.�&ÎÔ¾ë°íq:ß#Õ¾7¿Ù%9¿ðá)È¡k´’
u|5º3™Esý”²�Ù%C!™*2¾»^/dãêÓâ¯Àú>ëWƒyiA I#�ÁY>y(½ðTSÂ/ÁŽoåü7ÀÝkÑtÈ/ô.–Áq92¹àÉz~§@+âBYi‚r5/bóª§§1ç?ß7ÛOöÒ\\hÞ�Tä¦d%m@8”J	Q±^ì¡‰Y·Û»í¿wÿÿ’Âò=    L   ;ˆl–ßi~””†»%ÝÁ=q—Å£�þ\h7!r7
	B ?çƒ€æa–Ðz¾”d
i?u8 ™¸Ø.*bÑ¿ä @    ;Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: es-to-primitive
Upstream-Contact: https://github.com/ljharb/es-to-primitive/issues
Source: https://github.com/ljharb/es-to-primitive#readme
 https://registry.npmjs.org/@types/es-to-primitive

Files: *
Copyright: 2010-2019, Jordan Harband
License: Expat

Files: types-es-to-primitive/*
Copyright: Microsoft Corporation
License: Expat

Files: debian/*
Copyright: 2019, Bastien RoucariÃ¨s <rouca@debian.org>
 2022, Yadd <yadd@debian.org>
License: Expat

License: Expat
 Permission is hereby granted, free of charge, to any person
 obtaining a copy of this software and associated documentation files
 (the "Software"), to deal in the Software without restriction,
 including without limitation the rights to use, copy, modify, merge,
 publish, distribute, sublicense, and/or sell copies of the Software,
 and to permit persons to whom the Software is furnished to do so,
 subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 ACTION OF